#development
1 messages · Page 1108 of 1
7e46c97f-bfa7-4cdb-818f-488582c35036
^ like this
const { v4: roomID } = require('uuid')
//...
app.get('/unlocking_door', (req, res) => {
res.redirect(`/${roomID()}`)
})
okay
in the post request
add this:
if (input !== roomID) return res.render('room.ejs', { message: 'Stop tryna mess wid me epic site retard' });
return res.redirect(`/${roomID}`);
lmk if it works
it wont
why
new ID generated each time
ah
yeah
just do this
and i cant do req,query() because it hasnt been created yet
could i use a map or some shit to store IDs?
How would I set multiple prefix's to this code
const Discord = require("discord.js");
const bot = new Discord.Client();
const token = "";
const PREFIX = ("-");
bot.on("message", message => {
let args = message.content.substring(PREFIX.length).split(" ");
switch (args[0]) {
case 'test':
var embed = new Discord.MessageEmbed()
message.channel.send("test");
break;
}
});
bot.login(token);```
make prefix a let
const { v4: roomID } = whatever;
const id = roomID();
// THIS IS OUTSIDE *EVERY* API CALL
app.post('/whatever', (req, res) => {
if (input !== id) return res.render('room.ejs', { message: 'Stop tryna mess wid me epic site retard' });
return res.redirect(`/${roomID}`);
});```
wdym woogie?
u want it to respond to more than one prefix?
u dont need to make it a let
ever heard of an array
array didnt work
make prefix an array and loop through the prefixes
monkey
lost, i want to check if input is an active room ID
if it isnt then dont redirect
and display error message
const loadsandloadsofprefixeslolahhaha = ['prefix 1', 'prefix 2'];
let prefix = undefined;
for (const prefixofloadsofprefixes of loadsandloadsofprefixeslolahhaha) {
if (message.content.startsWith(prefix) prefix = prefixofloadsofprefixes;
}
// the rest of ur code here```
What an annoying variable name lol
why wont that work, dice?
const a = new Array(100, '@digital ibex')
for (const LmAo of a) { msg.channel.send(LmAo) }
?
spam ping
setInterval for spams pls
setInterval(() => {
message.channel.createMessage('ur mom fat');
}, 1);```
???
input is a string
not array
what is a createMessage
eris
oh
What is docs
basically better d.js
that is actually discord.js-light
no discord js lib can top eris apart from detritus maybe
eris is amazing imo
omg its not working
any of you know how to fix this
https://gyazo.com/17c2efbc6ed36de2238ab8b93f4efd39
thanks
the only issue with it is that theres connection timeouts or something
never experienced it for myself though
from what i hear, there seems to be multiple issues with it
many bots when they hit 10k servers+ using eris make their own sharding manager
well, i only know 2 at least anyways
app.post('/finding_keys', (req, res) => {
const {input} = req.body
if (!connections.get(input)) {
return console.log('apple')
} else {
res.redirect(input)
}
})
i want to stop it if it cant find the item on the map but issnotworking
The one for a bot I was planning to make was a modified custom one for eris, but then I never actually worked on the bot 
i seem to have a problem with shards timing out and not being ready
That sounds like hell
updates be coming out everyday
app.post('/finding_keys', (req, res) => {
const {input} = req.body
if (!connections.get(input)) {
res.stopThePostReq:)
} else {
res.redirect(input)
}
})
``` e
if the library changes stuff however, like discord.js seems to regularly change their source code, wouldn't you have to do something on your end, if its to do with discord.js tho?
whats not working, dice?
its continuing to wait for host even if its not in the map
Well they usually dont change the inner workings of the websocket connections
I dont think they have any reason to
continuing to wait for a host?
updating djs-light is gonna be much worse
making a discord.js framework must be hell
imagine eris-light
theres already a similar thing
discord.js-light is very good
very light
that link gives 404
lemme see if i can find it
it keeps waiting and thats u g l y
url @pure lion?
not up yet
oh axon team
@pure lion you need to return something
i did
for d.js detritus (not yet) and eris
res.send(200)
o h
or whatever
never used it but devs who are wayy better than me and i look up to use it, so im assuming its pretty good
can i sendStatus and then redirect?
i dont think so, not sure tho
u can just do js res.status(200); res.redirect('whatever');
now i gotta add a 'copy ID' button
never used it myself
function copy() {
var copyText = document.getElementById("myInput");
copyText.select();
copyText.setSelectionRange(0, 99999);
document.execCommand("copy");
alert("Copied the room ID: " + copyText.value);
}
it doesnt copy the stuff to my clipboard and only displays the alert with the correct text
what does the html look like?
same
im assuming the button is something like
<button onclick="bob()">copi</button>``` ?
i didnt understand what u said cofnsuinon
in modern browsers, you can use navigator.clipboard.writeText(text) which is async and returns a promise
idk man, brexit leave me confusion
What
Oh same
cuz of brexit stuff
BST
england?
Ye
same
Ok do sleep good
Guys, I am not much professional in programming, who helps me and program bots with me, please, please
you can find people that will do it for you a dime a dozen
well not quite as cheap as a dime
but try and follow discord.js's tutorial on their website
that should get you started, and then we can help you with specific questions you may have
Whats the best language to code discords bots in
there isnt a best language
each has their benefits
d.js and py are greatly used, some might say they are the best.
some might say ruby or c++ are the best for speeds/compiling
or even lua
it boils down to your preference **||most of the time||
^
to some degree some langs do have advantages, but i wouldnt go as far as saying theres one thats the best
if you're asking this question you'd probably want to go with discord.js or discord.py because they have the most documentation and they're the easiest frameworks to learn
or go for haskell if you dont value your life
oh no
you can find people that will do it for you a dime a dozen
@quaint hound The bot is my purchase, and its means that I do not have help alone -_-
i'm not sure what you mean
i think he means 'i dont want to work, i have money'
if thats the case i'm pretty sure you could pick most anyone in this channel to pay and do the bot for you
I translate from Google Translate to Arabic
ah ok
well in that case you'd have to hire someone arabic speaking which might be tougher
if thats the case i'm pretty sure you could pick most anyone in this channel to pay and do the bot for you
@quaint hound No, I want to partner with someone in the Abbot that you do with me for free, we can help some of my goods and yours
Need help with verify bot
this my bot https://top.gg/bot/736359401866133574
most people won't partner for free because they can already do it on their own
good luck in finding someone tho
But because I don’t know how to program
you can learn using https://discordjs.guide/
np
@weary gull discord.py then
wt
ok
Anybody know where to find a video/website that explains how to create a moderation bot? I have little experience figiting with random youtube tutorials
wtf
import discord
client = discord.Client()
@client.event
async def on_ready():
print('We have logged in as {0.user}'.format(client))
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith('$hello'):
await message.channel.send('Hello!')
client.run('your token here')
he just saw the website for the first time
Yes, but what code?
that's python code
aha ok
if im not mistaken, js bot starts with
const require = Discord JS
or something like that
wtf
send in dms
sorry
im still learning lol
docs + logic will get you far
I need people who come in, to answer the programmers badge, or I can do it
want to change roles of a user? its in the docs
and youtube videos are either not updated or have like no speaking
want to mute or kick on ban? its in the docs
Medicine, you can help me and program a bot with me, please
Can someone recommend me an app that I can use to work on my bot on the go? I know Termius is a thing but it’s not the best when it comes to coding.
Can it connect to a CentOS server?
i dont think repl.it itself can handle my bot
you might want to look at your VPS provider (assuming you're using a vps) to see if they have a mobile app
Who give me bost in my server😀
@quaint hound doesnt heroku work as a vps but for like projects to host
no
heroku isnt worth the trouble
Who give me bost in my server😀
@weary gull I can give you no boosts
IMO the only real options are VPS or self hosting
@weary gull I can give you no boosts :TohruYeeHawW:
@sudden geyser lay lay lay
I will program a bot on heroku server
no
we can agree glitch bots are the worst tho
Glitch problem that it is classified as all sites, as it gives the bots a 24-hour workout. Repl.it is not a file or site
Glitch < mobile hosted bots < heroku < self hosted < vps < dedi < hosting at nasa
dedi?
Dedicated sever
fancy VPS
A whole server computer hosted at a proper facility
you still rent it from a company, but you actually own the whole thing
Hi
ok so I know w3schools is the best for learning javascript, but where's the best place to learn the ways of discord.js?
just discord.js website? or is there an actual place for learning it that isn't a part of their website
There's the guide
Oop
Can anyone tell me online hosting like glitch but not glitch
Heroku does something similar, but its also not great
@ember atlas man will save us
gonna try @glad charm too for good measure 😛
Locally hosting a bot requires a computer running 24/7
Yes I have a spare laptop
@weary gull Do not beg for nitro boosts and post your bot invite link. Only warning.

If you do not need coding help, leave this channel. Thanks.
love you too
I need some help woo osnhelping me
My codes are correct and my bot is not coming online
Any errors?
No
then your codes probably not correct 
did you call client.login()
Should i share?
i'm assuming discord.js
did you actually run it? with node .?
sure share code
careful about token leaks tho
Nodemon
Ok
Main file server.js - https://hastebin.com/vudabajaka.js
Handler file command.js - https://hastebin.com/numimosusi.js
One command file ping.js - https://hastebin.com/keyoqoqaba.js
@quaint hound
ok lemme see
Beautiful ASCII lol
thats fine
lol
yup
o
I have no idea how to javascript
so what exacly is the issue?
Too big brain
bot dont do anything at all he says
@opal plank issue is before the bot is coming online but commands not reponsding and now the bot not even coming online.
do you get any errors on compile?
Ok
actually, log in right above the collections
i doubt it, but you havent hit any rate limits, have you?
rate limits arent only for messages

thats why im recommending putting the login so up in your script, to make sure its logging
I did
and?
you get a ready event?
No
client.on("debug", (i) => {console.log(i)});
Add that right below token(which should be above the collections)
OK
WHERE
i did debug it is something preparing to gateway
429 hit on route /gateway/bot```
429 

means you gotta wait X amount of time before connecting
go sleep and try tomorrow
and fix whatever is sending that many requests
its prbably something you coded thats spamming the api
OOOOOR
you somehow managed to log in 1000 times in a single day

which i seriously doubt someone can accomplish that
do anyone of there cmds spams api?
indeed
and wen i changed my bot's token how the discord api knows i m the one who was rate limited

you gotta wait for the rate limit to end before you log in again
w8 can i open discord developers portal with my 2nd account and make a bot token there? ||big brain||
you can ping the api manually and see the payload response if you want to see the time
i wouldnt recommend evading rate limits

yikes ratelimit

ratelimit times are like 24 hours tho right
||who ever comes to stop my bot i will stop him||
ratelimit times are like 24 hours tho right
i think i got rate limit yesterday 1 pm
i think i remember someone screaming for getting 28h limit
lol
well for starters i'd recommend looking over all your code to make sure it wont happen again
i personally got it once for looping a map/array with axios. Not the smartest of my ideas back then
and there are ratelimits on a lot of activities
api didnt like me sending 600 requests
Um but I don't think there problem in my codes
My codesss are OP
cuz the api said so
api doesnt simple say 'oh, i dont like you, im going to rate limit your ass'
its definetly something you doing
i've got no clue, anything that does requests, i guess
i m just making my commands as usual
Basically anything your bot can do can be rate limited
What type of commands do you have?
const db = require("quick.db")
module.exports = {
name: "prefix",
category: "Extras",
aliases: ["pre","currentprefix"],
description: "Get the current prefix of guild",
usage: "prefix",
run: (client, message, args) => {
let p = db.fetch(`prefix_${message.guild.id}`)
if(p === null) {
p = ";"
}
message.channel.send("**Default prefix**: `;`")
message.channel.send("**Guild Prefix**: "+p)
}
};```
Status changes, nickname changes, message sending, message editing, etc
After this i think my bot stop reposnding
Could have also been a possible token leak and someone else got him ratelimited
Ofc he’s changed the token now so
@strange trout
Hey
Could have also been a possible token leak and someone else got him ratelimited
Ofc he’s changed the token now so
hm
something is wrong but discord
*with
@pale vessel the code worked but set timeout didn't
i would assume either pokemon or moderation commands
I'll send my code here just a second
maybe corona
but i m using these cmds frm months
Where's the location where I can add my bot?
what

At least take a look before getting ratelimited again
If you don’t see anything, try it on a second account
you're just going to spam the api again if you use a different acocunt, it completely bypasses the purpose of a rate limit
But trying again and getting the same result isn’t gonna help
is there any clue to check rate limite
How can I create a dashboard in my bot?
Like I said tho, could be a token leak

You’ll have to be more specific wym dashboard
i will recieve a mssg if my token is leaked
no?
yes
Not necessarily
unless you dumb enough to post it here on discord
Github tries to stop people from leaking tokens
then a system message might catch it
Nah it won’t I’ve token leaked before from being dumb
Can I teach me to create dashboard? @quaint hound
I token leaked on stack exchange before
channel.send(thanks)
var Tet7 = bot.guilds.cache.get("690557545965813770")
let upvoter = Tet7.roles.cache.find(role => role.name === "Upvoter!");
var mo = Tet7.members.cache.get(vote.user)
mo.roles.add(upvoter)
setTimeout(() => {
mo.roles.remove(upvoter
) }, 43200000);
})
})
}
});```
Thankfully nothing happened
lol
var has its uses

just is a different scope
dont use it unless you know what those uses are
They don’t ignore scopes
they do tho
any functions passed on it they'll retain values
^
let and const are just lexical
That’s not the same as ignoring scopes completely
its a quick way of explaining it
let or const
Usually let is the better option
const is immutable
Lemme try
let is mutable
https://oliy.is-just-a.dev/gabvuq_5356.png https://oliy.is-just-a.dev/nysq9p_5357.png var is function scoped, or globally scoped
Usage of var isn’t a crisis tho
just depends on how you use it
If the code isn’t working it’s not cause you used var instead of let
and it isnt the end of the world. Almost all schools still teach var over let
@amber fractal yes im aware
Ok that doesn’t mean shit
Because it's still standard and will stay that way for quite a while
only reason you'd usually want to use var is for loops
I use it so I can get a value out of a try/catch for message awaiting
using proper scopes is usually a much better call rather than using vars and inducing possible bugs later on
I use let for loops
Var vs let vs const isn’t a crisis tho
instead of initializing a value above that might never get used
If you’re going to pick a hill to die on that’s not it
Var is also useful because it can be redeclared
so does let
Usually you wouldn’t want to but if you’ve got a funky loop going on it might help
well
Let doesnt
hence why you scope them
Sometimes you don’t want block scope too
Declaring a variable inside an if for example
await message.channel.send("What is your email?")
try {
var response = await message.channel.awaitMessages((m) => m.author.id == message.author.id, { max: 1, time: 60000, errors: ["time"] })
} catch (e) {
return await message.channel.send("No email received")
}
let email = response.first().content
``` looks better than
```js
await message.channel.send("What is your email?")
let response;
try {
response = await message.channel.awaitMessages((m) => m.author.id == message.author.id, { max: 1, time: 60000, errors: ["time"] })
} catch (e) {
return await message.channel.send("No email received")
}
let email = response.first().content
imo
Yeah that’s why you wouldn’t want to use block scope sometimes
Hey everyone! It’s motivational unicorn girl again. XD I have a quick question.
If I bot is on a GitHub repository (I’m hosting it on Heroku), and I transfer the repository to a new GitHub account, will my bot go offline?? Idk how bad transferring a repository is.
Idk how github works lmao
is it an issue that it goes offline tho?
I think she means it won’t work
Cause heroku is drawing the code from the repo so transferring ownership might mess that up
^^^
var won't be trouble if you don't use it incorrectly
keyword if
Well that’s true for anything
why bother risking it?
The subjective part is how much risk that is
also, var looks ugly don't @ me
Cause it makes things better in some cases
There isn’t a blanket statement that covers all use
But generally let is better, until it isn’t
there are few cases where var is necessary
I'd still use let/const over var, but I think people make out var to be bigger than it actually is as what stands between your way is just a logical error
Also Heroku isn’t really the best place to host a bot bc u only have certain free hours per month . :/ but yeah I’m just worried about transferring the repo
With my almost 0 knowledge of github it wouldn’t matter cause the repo would still be there
So it could still see everything it needed to, unless there’s some sort of account bs going on
idk, its a shit hosting service, im not sure how it works
heroku and glitch
“It’s not as bad as glitch tho”
Stop hosting anything on glitch’s shitty website lmao
glitch is more bearable but free hosting is going to arise issues in general
depends on what you want to make
Glitch is worse I think cause it has more bugs
if you use glitch just to host some small site you just leave it'll be fine
Well that def helps a bit. Ya I just have a new account. So if the repo stays intact, everything should probs stay the same?
Most likely yeah
Well idt that would matter cause the heroku is still there
say a local database or something
pls give me welcome code
ty needed that
Nobody gives code for free here lmao
wt
my bingo, yes
lay lay lay
I just did it through git and Heroku.
Gold
I hate unnecessary bashing on if else tho
Some things can’t be checked with switch so I mean
Yea
if(command == x) {}
if(command == x) {}
if(command == x) {}
if(command == x) {}
this level of shit that you'd see around quite often
It’s like a pack of wolves all pricking their ears when they see if else
People do be beginners
Thanks y’all for the advice !!
Is there a better place to host a bot than Heroku? I def avoided glitch.
no
oh god
The only better options are self hosting and a VPS
no
lol
code
There are some hosts in the pins
How to get MEE6 IN MY SERVER
Yeah VPS is the way to go
wrong server alex
How to get MEE6 IN MY SERVER
@earnest phoenix if u know tell me also
Damn I really don’t want to have to rewrite my bot in Eris at some point
But I need that precious memory
Might do that as a holdover
Or I might write my own framework for the hell of it lmao
Thanks for everything y’all!
Damn I really don’t want to have to rewrite my bot in Eris at some point
@quaint hound wait why would you have to do that
It seems due to memory usage.
Yeah Eris is much more lightweight and caches less than discord.js
Now I also personally think Eris is ugly as hell to look at because I prefer the object oriented method system, but you gotta do what you gotta do
You could also use Tim's wrapper Discord.js-light, but I would use Eris if you want to go all the way.
Eris is based on an older version of Discord.js to my knowledge.
Yeah I’d probably start with djs light and see how it goes
It also cares more about compatibility than Discord.js does.
wdym
What is your alls' bot's typical memory usage?
@fleet hornet why don’t use channel-id
What is the best way to program a discord bot because in this case I use it by cell phone and the programs here are bad...;-;
the programs here are bad
?
the best way to program a discord bot
For you, following a tutorial on YouTube
@molten tree
check if the Channel exist if no return. otherwise you will get unhandled exeptions -> forced restart
@glad charm
For you, following a tutorial on YouTube
@molten tree
@faint prism hm ok
Damn
😛
Lol it's fine
@fleet hornet check if the Channel exist if no return. otherwise you will get unhandled exeptions -> forced restart
now the correct one
almost as annoying as having 6 Alexa on the same server
loL
😄
Anyone here good with d.js 12 and 11?
I need help with a NPM im continuing
Everything under it is on v11, and since discord is updating it needs to be v12 now
npm remove discord.js
npm install discord.js
this will install d.js v12
after this i would run npm update
this will update other dependencies
Yeah, but i'm saying for the physical code
What
Yeah, well im just looking for someone to join the team
i dont think this here is the correct place for this
Not really
Just theres a bunch of bot devs here
So figured I'd ask
https://www.npmjs.com/package/discord-script this is the package
the thing is im not a huge fan of Packages that forces to use certain packages. yours depends on quick.db as example
sure makes it maybe easy for a beginner to start but he will regret it when he hits 2500 guilds i guess
wait
your easy-discord-api-communicating package is dependent on another easy-discord-api-communicating package?
tfw it depends on discord.js
you could've just used discord.js-light written by the one and only tim
i guess the package is still at D.js-V11
^
Hey, ```
0|index | Error: Invalid converter command
0|index | at new module.exports (/root/ModCord/node_modules/eris/lib/voice/streams/FFmpegPCMTransformer.js:7:15)
0|index | at Piper.encode (/root/ModCord/node_modules/eris/lib/voice/Piper.js:149:52)
0|index | at VoiceConnection.play (/root/ModCord/node_modules/eris/lib/voice/VoiceConnection.js:445:24)
0|index | at Object.module.exports.run (/root/ModCord/commands/fun/radio.js:23:31)
0|index | at processTicksAndRejections (internal/process/task_queues.js:97:5)
Does anyone how I could fix this issue?
your code
how can i fix it
i want the bot to show the name of the person mentioned in the command. example !hug "@earnest phoenix"
Who pinged me here
i want the bot to show the name of the person mentioned in the command. example !hug "@earnest phoenix"
@earnest phoenix you need to get the first mentioned user
message.mentions.members.first() getd the first mention
ok
And you can save it as a variable and it contains the user class
So you can do <variable>.username
thx
Np
Say potato
potato
lol
When you spend ten hours figuring out why message.guild.id is not working but then you realize you misspelled it :/
lol
@earnest phoenix sorry to disturb again
Some parts of embeds don't display pings
how to fix it?? @earnest phoenix
either user the tag or displayname of the user
anyone know how to fix this?
your code
the part that throws the error
client.createMessage(message.channel.id, `This command is currently under construction!`);
let userVoice = message.channel.guild.members.get(message.author.id)
let channel = message.channel.guild.channels.get(userVoice.voiceState.channelID) || null
if (channel == null) return client.createMessage(message.channel.id, { embed: client.functions.embedUtils.error(client.functions.errorMessage(client), `Please make sure you're connected to a voice channel!`) });
let VoiceConnection = await channel.join();
let radioName = args[0]
await VoiceConnection.play(`https://radio.pulseebot.com/radio/${radioName.toLowerCase()}`)
i think its' ffmpeg
await VoiceConnection.play(`https://radio.pulseebot.com/radio/${radioName.toLowerCase()}`)
this
Yeah
os?
what should i change in here??
seems like an eris issue
well then idk
Uhm OS = Ubuntu 16.04
@earnest phoenix why is members defined as a const?
ok
not message.username.member.first()
i think. if your userobject has the property
bcs you dont follow instructinons
i gave you a hint for it 4 minutes ago
it should be user.username
@lusty quest ?
try and see
ok
Ok so
I made meh clear commands
And I went to do one and it ended up doing like 4 of the same one
smh
you still cant follow instructions
some people just can't
Who me or Night
night
did you got mutiple instances or nested events? @earnest phoenix
i dont really support here some wired Apps to code on phones
@earnest phoenix is your user object valid?
yeah no errors
ohh you get the member not the user. why?
When I'm too lazy to learn to code
then you need to do user.user.username
ok
or user.displayName
user.user.username works
thx for the help
Question
What do you use
I'm never sure about dat
Ping me that I'ma sleep
use? @earnest phoenix
Hi, how could I make a readAbleStream with axios?
fs.createWriteStream or createReadStream
@opal plank Hi
On morning my bot doesn't coming on9 but now i check it is on9 but it is not reponsding to cmds I am confused that rate limited is removed or not
on9?
ONLINe
oh
@surreal notch which language?
Discord.js
Nope
how're you hosting the bot?
might be a prefix issue?
maybe
its better to console log the prefix and ping i think atleast
OHHHHHH
it worked
I forgot to that i have chanegd my custom prefix
thx for helping
😅

depends if es6 or newer or just commonjs.
i expected something like a link of documentation lel can someone like give an example code or documentation code as my bot.js file is getting huge
es6:
export default class PingCommand {
/* things here, also this is my opinion to export commands on es6 */
}```
**commonjs**:
```js
module.exports = {
/* code here, example:
run: () => {}
*/
};```
@arctic cape You use command handler?
how do i know ? is it like written in package or pakage-lock
Um
and yeah, https://discordjs.guide for commonjs tutorial of command handler.
thnks
Are your all codes in one file or different
i want to seperate them currently they are all mixed
if you dont use ts and havent declared type as module in package.json, you are using commonjs.
ok so i use commonjs

yeah, go in to that tutorial and find "command handler".
Despendencies show package u have installed
"dependencies": {
"discord.js": "^12.2.0",
"discord.js-commando": "^0.10.0",
"dotenv": "^8.2.0"
}```
thats what i was asking u meant this only right ?
ok
well, if you want go to https://anidiots.guide and select v12, its in-depth tutorial, if you want more code than explanation: https://discordjs.guide.
ok thanks for the help
np
why caps not work when using !setnick commandmsg.guild.members.cache.get(userni.user.id).setNickname(newusername);
to
Lower
Case
()
why Locale??
in prefix im using locale ;d
to
LocaleLowerCase()
msg.guild.members.cache.get(userni.user.id).toLowerCase().setNickname(newusername);
Hey, I am coding a bot for the first time and shouldn't this return "Pong" if I say "!ping"?
https://gyazo.com/d66656d86e1d43a3d5b1c6be358abc2c
ignore the prefix^^
dont to(Locale)LowerCase args
Hey, I am coding a bot for the first time and shouldn't this return "Pong" if I say "!ping"?
yes, try withstartsWith.
Also is this discord.js right?
dont
to(Locale)LowerCaseargs
@restive furnace Where would I put startsWith? 😂
instead of === "ping", put thag method.
when i ping everyone in my server the bot shows a error and the bot stops working
how to fix that??
I want that whenever a person use command of my bot in any server it shows in my server : This person has used this command. in discord.js v12
@surreal notch yeah, just send a message then

can someone helpme
Sounds like you're trying to do an action on an object that is null
why when i type -map -POI
to commands activated ? -map and -map -POI
if(args[0] == `${prefix}POI`) {
command works
is it should be ! or what
!hug @granite pagoda but when i use !hug @everyone the bot shows the error and stops working
@viral iris
u can't hug everyone
Please learn js
Its a simple issue to solve
@viral iris : uses args
Also @viral iris : doesn't use switches but uses shitty if statements
@earnest phoenix learn
If statements make your commands case sensitive
Js
@viral iris : uses args
Also @viral iris : doesn't use switches but uses shitty if statements
@earnest phoenix huh
thats my error
He's doing @everyone
WTF
YEAH
WE ARE STACKOVERFLOW GUYS WE WON'T SPOONFEED YA
Also John stop using if statements use switches
If statements make your commands case sensitive
If statements make your commands case sensitive
I typed that sentence so many times to people that auto correct remembered it
was
worked
grammar
shut up minecraft kid
bro
lmao
how to give my bot perms?
this is just a calculator for the flags
e
please tell me the whole process anyone
It's not rly that hard
Go to calculator
Oauth tab
Give admin for all perms
Kaboom
And done
WHEN I PRESSED ADMIn on bot boz it showed me permsiion integer
dont spam that...
Is anyone available that can hop in a call? I need some help with something.





'
