#development
1 messages Β· Page 775 of 1
Put it in one of these if it's long
http://hastebin.com/, https://mystb.in/, https://gist.github.com/
Well... Client isn't defined there
Unless that's in your main file
it is i defined it at the top
Ah
i checked 12 times no syntax error
Your probably missing some) on the lines above
The executor don't lie about syntax errors
lets say i send embed message
how can i edit it later
with normal message i just .edit(), i wanna edit an embed field
Just replace the embed with a new embed thats identical just with the field you want changed
so i changed my bots server and im fairly sure it was crashing and restarting all night due to a little oopsie.... anyways now i cant connect to discord using any token from that application in the dev portal... if i make a new app/bot and use it its fine. what can i do to fix this?
check your email first to see if discord had contacted you
if not, you got api banned and you have to wait it out
how long?
You can
you can
it happened to me before (multiple times), they just reset your token
no emails and my token even regened dosent work
They reset your token if it happens again they ban your IP in a set time frame
its not an ip ban though i just cant use that one bot
spamming the endpoint repeatedly will cause you to hit a ratelimit, if you keep hitting the endpoint while the ratelimit bucket had not expired you'll get api banned
aighty, well how long do they usually last?
its been two days
doubt you got a ban
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
contact discord about it
Just an fyi
did you state it was your app
it's an auto response lmaooo
reply to it that you want to speak to an actual person
a member of the trust and safety team will then get to manually replying
Each time you get a ratelimit your request limits go down for X amount of time, if you keep spamming somthing like status change or messages your limit will stay low for a while, continued spamming of the API after resets or spamming token regens and logins can get you banned for a ehile
doubt
Wdym doubt
api bans don't last two days
i only regened like three times
Not normally no
If it's over anything over a day can mean application termination but that's a very severe case
anyways, just reply to the sent email that you want to speak to an actual person - it works
you have to spam like retard to get api banned
yeah that's an automated response
yea it has code to autostart itself but it was crashing on start so weird things happend

@slender thistle how much do exp do u have with BytesIO
just as much as I know Turkish
it kinda somehow works
hmm
What's up
Trying to work out why my GDrive Upload system isn't taking the bytesIO ovject
It's not Erroring
But equally it's not doing anything it's supposed to either
rip
Do I need to add a shard rn if my bot is almost at 2000 servers?
Recommended
Might be an idea to think about yh
anyway to give a bot an animated icon? and if i change the bots name will it stick on the website
No animated icon ability
oof
Yes if you change the name it will change on the site
wait wont an apng work?
No
oof
Let's try not to exploit anything
k π¦
You'll only dig a deeper hole for yourself if you try to bypass it
wouldnt i get banned if i found how to do that anyway?
Most likely your bot would get deleted in average cases
the worst being your account getting banned
I mean discord takes the first Frame of any image or gif you pass it unless it's a user account with nitro
oooof
How do I fix the βThe port is already usedβ error? It occurred because I spawned 2 shards on the file that I used to both host my website and my bot.
@earnest phoenix Use different port or kill the process that uses it.
like different port for different shards?
All shards are on the same port.
(all shard should be on the same port)
If they're not then fuck knows what you've done
@modest maple could be running on a different server
@earnest phoenix only make one webhook
You know how big of a bot you would need to make multi-server bot hosting feasible
So on a scale from 1 to 3.97, how good is auctions?
how would i get multiple prefixes other than server prefixes like make it so i can use the 668876359363461139
id of my bot
like @gilded plank sosos
i wanna do @hushed fox sosos
use an array
how use array
arrays are wrapped in []
so js const array = []; array is an Array, which has a push method to push anything inside it
oh ur using python
yeah
**PYTHON USERS**im trying to give a player a role when they join but don't know how to like give it. Im new to bot coding and it is very confusing
even though my bot has 400 lines of cod
code**
@fallow mango Im not good at Python but try this:
@bot.event
async def on_member_join(member):
role = discord.utils.get(member.server.roles, id="<role ID>")
await bot.add_roles(member, role)
``` Just put role ID well, the roles ID
no spoon feeding please
sorry
ill try it
;)
I mean not really
it gives everything you need
and assumes you know how to make event listeners
a good way 2 get good at coding is, try new things, google it, expiriment, recode and keep trying. If you are just beond confused/stuck then try and ask the question
im currently working on trying 2 have my bot auto delete new messages on a specific channel
ik the general bases, just not how 2 get the bot 2 detect the new messages on the specific channel
command?
@dreamy jacinth.event
async def on_member_join(member):
role = discord.utils.get(member.server.roles, id="<role ID>")
await bot.add_roles(member, role)
@bot.event
async def on_member_join(member):
role = discord.utils.get(member.server.roles, id="<role ID>")
await bot.add_roles(member, role)```
oh just came back youwelcome @fallow mango sorry it didn't work tho
idk
can you give the errors then
i close the terminal and deleted thingy

i did get something like discord.utils doesnt exist
well considering you're giving very little information i cant help you
are you using async
This is a Heroku question. Do I have 2 add a credit card/bank card 2 install addons or is there another way?
hmm
well 24/7 all day every month with a credit card on ur account
i use a bat file
free. goes offline if u error on ur code or terminate it
closing it normally doesnt make it do that though
sooooo
easy
hmu if u want that lolololo
y
because it slows down over time
not wrong
I almost have my computer on but i use linux
yes i do host somethings on here
but i dont recommend it
I recommend either getting a home server setup or just getting a cheap vps
contabo is very inexpensive, trustworthy, and good for the price
i dont know how to get a host though i jsut have a bat file with ```bat
@echo off
py bot.py
pause``` in it
that easy
its free
no money
no vps trials
no fees
no nothing
moderate, decent uptime with very good internet
running a bat file should not be a permanent regardless
then why are you recommending it
being lazy gets you no where in this field
@quasi marsh
When you run:
m#backup create
it runs this code:
@cmd.bot_has_permission(manage_channels=true)
Can I see the full command code?
Alright so
@earnest phoenix.has_permission with discord.py will mean that the user that runs the command needs the "Administrator" permissoion
wait
this could be old code....
oh no
its not
wtf
im SURE i removed tjhat line...
ok so... ill remove that @quasi marsh
what else
well what permission do you want the person to execute the command to have?
Everything else
if it dosnt have those perms it will crash
ok i removed the cmd.bot admin check
What else do i need to do?
i mean, that should be it lol
I mean requiring admin is fine
But you should make sure that users are aware that they need it
no
i got declined for having it
so they said to use this method
Just one question...
is all this right?
it should all be right
i never used the has permission tho
wot
It's important for your bot's users to be aware of what permissions they need to run the command
Well
it will say that they need it
maybe invite it to test....
let me build and run it
In addition
Administrator is consired a "dangerous" permissions
It's because admin gains all permissions and also ignores all channel overrides
exactly
thats why i removed it.
Ill DM you the invite for the server to test.
so you can see what i mean about the checks thing
Well not really needed
So you require manage_messages, manage_channels, manage_emojis and manage_webhooks
So
Missing any of these permission will, when the command is ran, raise a discord.ext.commands.BotMissingPermissions
Do you have code to handle this?
ye i think
what happens ^
when u give it that perm
and run it again
it will say the OTHER perm it needs
and you keep repeating until its happy
Maybe the tester got confused and thought its the same error?
When its regarding for another permission??
You can't check all permissions at once and show a list of missing permissions?
I cant really help you with that language, it looks like python?
Look,
I got a developer to make half of it
i know HARDLY any py, and thats why im a noob lol
I only know some basics
The developer didnt put in any checks
and i needed to do it myself.
Can I see the full code of the command?
m#backup
i rather not -=-
Make sure to clean out anything that should remain private
Maybe you can send it to Grobbe in a DM if you dont want to share it here
he has dms disabled
and you know how i deleted the admin check?
Guess what.... it was a user check
lmao
now i gotta add it back...
this is the error output
@quasi marsh ya know whats going on?
lol sorry for earilier i didnt understand lol
And cant activate the bot token
@unique wagon make sure to keep a backup of the command before changing stuff
yep
@earnest phoenix I don't think we can really help if you don't have a computer.
But I think it should be possible to get a bot token with the mobile browser
You need to program a bot to be able to use it
Ight
If you don't have a computer, gl having a server.
@unique wagon without seeing the full thing i can't really help you
I've send you a friend request
DM me the code, i'll go to bed to sober up
You don't need to see any of that.
Fair
So on a scale from 1 to 3.97, how good is auctions?
No
?
The main thing however is, like for example
All i need to do,
To run the create command, your bot want certain permissions
Is put all of the checks
into one check.
ye
exactly
we want to put it at the start.
I need to know what your bot is doing exactly to warrant the need for them
i can tell you what it does.....
and it better for you to test it
It needs these perms:
Channel
Message
Webhook
Emoji
All of these manage.
I have a sever
did you already try to run the command on your own server with 0 permissions and then only give the permissions that it asks for?
manage channel
Manage message
manage webhook
Manage emoji
Yep @blissful scaffold
it all works.
thats why
im going nuts
that im getting declined
(Sorry for the way i type... i just type this way lol)
You really should try to add all the missing permissions in one message
thats what im trying to do...
This says permissionS, check if it can handle more than 1 permission at the same time?
Maybe check how that function is build and what arguments it accepts
im waiting for @quasi marsh
I'm fairly certain it can
idk how to
Essentially
π
cmd.bot_has_permissions(perm_x=True, perm_y=True, perm_z=True)
So on a scale from 1 to 3.97, how good is auctions?
that is a valid option
The output is probably the same as when you have 1 argument in it
Well, the @cmd.bot.bot_has_permission stuff is referred to as a decorator
So what that means is that before the command is ran, your bot will first execute the decorators before it
Yeah but what I'm thinking is
And I guess if one of the decorators fails it wont execute the command
What if something is fucked
And your bot says
oi
i need perm X
But the problem is caused by the bot wanting perm y
So it's telling reviewers here to give the bot perm X when it's wanting perm Y, so when it still is not working they decline it
i dont understnad
cant i just get accepted.
I mean
it all works
its not my fault the tester things it says the same thing
when its not
lmao
when was the last time your bot got declined?
last year
I was so over it
i never applied back
And i want to get this done
-=-
exactly
And every time
i got declined
Not being rude
its the same person who assess me....
i re applied HOPING someone NEW would test it and accept me
Also just to be sure
When you change the code, are you making sure that the code is actually changed
oily doesn't check bots
If I remember you are working with another developer
So when the code is changed by you, is that replicated on the server that hosts the bot
for a shit load of money.... smh
And i still didnt get it working.
@quasi marsh
incorrect
I wish it did that
lmfao
I have to REMOTE connect
to my server
EVERY time
and edit it
oof
and rebuild it and run it manually.
that is why i prefer to write my own bad code instead of depending on someone else's bad code
hehe
are you editing it on the server?
ye
or uploading your local code?
i would recomend getting to know the scp command
if you don't mind btw, i do have to go to bed
I use winSCP when I need to transfer files to my linux server
i have a visitation day for the school i want to go to so i shouldn't be too tired
night kuiken
gn
i should be going to bed too soon
zara, your pc and server are both windows?
yeee
I guess you are just copying your changed files to the server?
When you change and restart your bot make sure to test your changes in your test server
and make sure to always keep a backup ^^
yrp
you should talk with the people who decline your bot
but that is already 4 months ago or so
try to add the permissions in one message like we explained ^^
and test if it works
Grobbekuiken said it would look something like this
cmd.bot_has_permissions(perm_x=True, perm_y=True, perm_z=True)
ik
it also only displays one at a time when the message looks like that?
I think it will show a message for all the permissions that are missing, but you should try it
trying now
With my bot I can give a list with all permissions that a command needs and it will show a message with every missing permission, but that is something I wrote myself
nice ^^
looking goooood
now you can also do that for all the other commands that need more than 1 permission
also check what the message shows if the backup load command is only missing 1 or 2 permissions
ye
time to do it to the backup command
lol
its all right
time to apple
LUL
good luck ^^
thanks lol
reapply *
lmao
Tysm @quasi marsh (when you wake up :D )
thanks all of you.
so for some reason my bot doesnt launch its shards anymore
all the shards take too long to get ready
and so they never actually come online
i havent changed anything at all in like 2 weeks and this just started happening yesterday
does anyone know why this might happen? thanks!
Discord is a stable platform and never breaks
Aka, it might be something on discord's side
i thought so too but then why do other bots work?
My bots are small enough that they don't need shards, so I can't help with that
There is an asynchronous function in the filter inside the emoji collection function(collector), but I cannot write await. What should I do? (nodejs)
@quartz hill you append async to the filter inside and use await
const array = [];
array.filter(async () => await something());
When I write this style, it does not wait, but I tried.
const filter = async (reaction, user) => {
let credits = await Utils.getCredits(user.id);
if (!credits && user.id != cfg.botid) {
if(reaction.emoji.id !== e){
return false;
}
let minutes = Utils.getCreditsTime(user.id);
Utils.sendEmbedFooter(msg, 'hak_kalmadi', user.username, minutes);
return false;
}
return reaction.emoji.id === e && user.id != cfg.botid
}
let collector = msg.createReactionCollector(filter, { maxUsers: 1, time: cfg.randomCharTime });
While collector is forming, it ignores the contents of the filter.
What should I do in this situation?
Not entirely sure if async functions would work there
What are you doing with the collector
The code you posted just creates a collector
Doesn't do anything with it
the continuation
This code get the id of the person who pressed the first emoji except the bot.
If he has enough credit, he agrees to print emojis. But if not, he ignores and waits for someone else to press.
I did not write the code because the continuation is long.
Yeh
It won't work with an async function as filter
The collector would have to await the result of the filter
Which it doesn't
What you could do
Please can someone help me I have a issue with my code
Is just filter the emoji and the user
And then in the collect event, you can use an async function that does the credits stuff
@quartz hill ^
Can someone help me i use a thing called glicth to make a bot but I typed "discord.js": "3" and it didnt work for me
I was trying to create a bot that PMS the hole discord server

Depending on the size of the server and the speed of your PMS, that could be a very big issue
Please just don't do that
Why would you even want to do that
If it's going to be the same message, just send that message in the server and tag everyone
for important things plus a bot test
for my own youtube discord
PMS the hole server when I realise a new video
@still merlin
- this is not glitch support
- we recommend you remove that command entirely as we don't tolerate ToS abuse when you know your doing it
Wait theres ToS
That's is a massive API abuse and is against ToS of discord
Omg I'll delete RoboPM then
I saw a video of someone doing it
I thought it was legal becuase it was a tutorial
Ok
Can someone tell me how to do some basic code
or just like to make my bot do something .-.
If youre using discord.js, learn javascript first
Ok, Is there any link were I can start
You can look for javascript tutorials, or use websites like codecademy
Ok! Thanks
I'm gonna try my best to create a bot that makes announcements when you ping the bot like @botname Tell #channel message
Hey guys, How do I add the code to the bot
In discord developer is there a way I can upload a file
Discord developer gives you a bot token, which you use to make your bot login
But you need to code your bot yourself, and run it yourself
And host it somewhere
@still merlin W3 is sicko imo
W3 schools
does anyone know if someone votes our bot on dbl and our bot sends a message?
then, how to make it?
host a webserver on your machine
Hmmmmm
@fiery crater they way I know webhooks work is, you put there an url, and then top.gg will make a request to they url whenever someone votes your bot, so you intercept that request and do whatever you want with it
Are you able to put custom emojis in a bots playing message?
no
rip
Hey, im new with discord.js and i need to create an thing. How can i put to users only can answer an number?
how can i use this?
google exists
i already try but i dont found the answer for my problem
i seach this "discord js answers only can be an number" xD
Sorry but with this i still dont know how can i do this xd
convert to a number (like cry said) then compare it
convert what?
hey did anyone happen to see my message yesterday?
i cant figure out whats wrong π¦
can you provide the link
are you possibly using discord.js, I remember my friend having the same issue, which (I think) was pinned on the issues tab of the github repo
yea im using djs
wheere support?
either something gets blocked on bot launch.
EX: loading guilds / members / cache etc blocks your bot event loop.
something db related?
EX: using something like an SQLite on big projects.
something server related?
EX: too weak cpu to load guilds / members / cache in time
somethign discord related?
EX: nothing u can do
how do i add the bot?
i am logging my bot's launch processes
and i see that it can load the database and everything just fine
and about my problem :/? anyone can help?
first step is logging client.on('debug') and see if anything is unusual on booting it on
oo i see
@worn drift You were literally given the answer to your problem
I encountered an issue on d.js on some bots that it cant fire ready because the cpu cant keep up on cache
and it blocks the event loop
where @scenic kelp
If you don't know how to do that I suggest further learning javascript before continuing on your bot-building endeavours
if you understand Event Loop you would realize what Im trying to point here on what maybe the cause of why your bot doesnt boot up
But on my bot only need this and i finish him ..
but if you dont, think of it like something is blocking the way for other tasks to execute
This is the issue btw https://github.com/discordjs/discord.js/issues/3201
it's literally the last thing i need to finish
but personally
I run 17k avg guilds in single process
and encounter no issues at all
so it could be also code related
i know its not my cpu or something bc it was lighting fast a few days ago
then all of a sudden it just silently dies
but if your bot gets added on big guilds
and your code cant keep up
thats an issue
thanks kino btw, im gonna check that
as well keep track of what you use on your d.js master
running very outdated builds also causes issues
so keep that in mind
i dont think im using an outdated djs build
@worn drift Use the Number() function. It takes a string and converts it to either a Number or a NaN.
but ill check it out just in case
I run a PR build without any issues and is not also that outdated like 3 or 2 commits behind
current build on master
im gonna your try the client.debug() suggestion, what should i be looking for with those logs?
it should show it caches members during the start up
if that takes too long to the point your bot cant heartbeat
then your bot will never fire ready on that case
how do I get my bot invited here?
how do i get more people useing my server? how do i bump it?
alright i tried client.on('debug') and the only message it logs is "authenticated using token ____"
so it gets stuck on that?
yea
then the shard fails to launch
ie "Shard 0's Client took too long to become ready."
then something is blocking your bot from logging in
try doing it on other server or your pc
@sinful lotus after you finish here you can help me with one thing on private?
if it goes in there
could there be a firewall that is blocking your connection?
then your server might have some problems on connecting to d.api
alright ill give that a shot
which is firewall or cloudflare or discord beaned the ip
and on the side note on who pinged me, Im not your personal helper
ask your question here and wait
the weird thing is this problem started happening on like thursday, and sometimes my bot launches fine, but silently dies
I will answer if I want to or I know the answer
sometimes it takes ~40 minutes for it to respond to ;help lol
then other times it doesnt launch at all
thats why test it on other server or your pc
gotcha brb ty!
With djs, how to make a bot react to a message? I know i have to message.react('emoji'), but i want my bot to react to a existing message (with a message id)
ok so i just ran my bot on my pc and it connected all 8 shards perfectly fine
does this mean my hosting service is screwing up?
where can i define DMChannel
cry i use aws
i havent reconfigured anything about the ec2 instance i use to host
i rebooted it yesterday too and it still is having the same issue
are you sure the vps has the power to run such a big bot
its m5a.large it definitely should be able to
help me please π¦
Read the error
8 gb ram and 2 vpcus, i checked their stats and it consumes like 10% or less cpu after a full day of usage on my bot
@modest maple and now
@near ether yes seems ur hosting got its ip flagged or routing to d.api bad
I suggest to raise an issue or leave them
oh shit wym ip flagged/routing bad?
ip flagged for abuse probably?
routing bad = their path to discord api is bad
basically lot of bad routers or bridges on the way to d.api server
or bad connections, overloaded too probably
damn
so you suggest i bring this up with aws?
also if my ip was flagged for abuse then how come my bot will work perfectly sometimes?
when it does work, it just becomes unresponsive after a few hours
then you can rule out flagged ip then
now its either routing is bad or something
thats how you usually debug that kind of things
test and rule out possibilities
yeppp
at least we've narrowed it down
thank you!
its something wack with my hosting service i guess
@worn driftgosh do you even know what you are doing
ok saya in case you want an update, my bot is able to connect fine right now
let see if it silently dies soon
Would anyone happen to know why in ASP.NET when I edit a model it then gets deleted? My teacher was saying something about it how data gets deleted in the POST edit method but I wasn't sure on how to fix that
Seems like an issue with the website tbh
the post request should edit it not delete it
Anyone can help ?
It seems I'm a bit out of the loop here -
A year or two ago I was building a bot using the C# and the Discord.Net library, but had to put it on the shelf. I decided to take a look at resuming the project, but (no surprises), nothing works anymore.
The odd thing is when I go to Discord and view "my bots" the list is empty. And my code won't compile at all after updating the Discord.Net library (channel, user, and all sorts of things are no longer defined)
Was there a major overhaul to the API that removed existing bots and broke all compatibility?
nope and nope
discord.net did have a few breaking updates which means you'll have to migrate the code to a newer version
https://docs.stillu.cc/ for up-to-date docs
Thanks. I'll keep looking around and see if I can access my bot again. It still appears on my server, but not in any of my "your bots" lists. I'll keep poking around.
make sure you're not using the wrong account on the dev apps page
Yeah, maybe. I can't think of any reason I would create another account though.
Ah, found it (under 'applications'). Thanks again.
I am tryna set my bot's status to do not disturb or idle but I'm not sure how, can I have some help please
in which lib
@golden condor js or py
js
djs or eris?
Is it deprecated?
Docs dont say it is
https://oliy.is-just-a.dev/5gjs3d_2695.png even on master it's there
My bot is now 24/7 and public, polishing off the support server then I'll apply to have it here
ngl i applied and then actually did the commands xD
@amber fractal how do you make the links like that?
How
is it sharex?
Pls explain
I have wondered how
A webserver running on a machine
whenever a link is posted, a request is sent to the URL and the webserver returns an image
@modest maple honestly I'm tempted to, given the wait aswell

#development etiquette
- If you know something, and someone asks a question about that thing, don't shit on them for asking. Either help them or stay quiet. If you don't have anything nice or helpful to say, keep quiet.
- This channel exists to help people. If you're not feeling helpful, your not wanted in this channel.
- Keep in mind that we started as beginners once, so be nice. Helping people helps us all. The more knowledgeable the development community as a whole is, the more we all benefit.
- Don't say random, un-helpful, unrelated jargon to try to make yourself sound smart, if anything it makes you look dumber.
- If you can't answer someone's question, don't try to extrapolate your knowledge from something else, you'll most likely confuse everyone involved.
- Don't ask to ask (eg. "can I ask a question"), this channel exists for questions, you don't need permission to ask one.
- Keep inside jokes in responses to a minimum, they're likely to confuse the person asking for help.
- No language/library wars, it makes everyone involved look like a dick.
Do not assume people haven't already Googled their problem. If they're asking here, they've likely already Googled their problem. Telling someone "google it" is run and unhelpful.
@golden condor I own the domain. I have sharex send a post request as multipart/form-data and the handler I made sends it to a folder on my machine that oliy.is-just-a.dev uses
the message has typos ^^^
is run
and confusing your and you're
well tbh that doesnt really matter, when someone reads that they wont stop reading and scratch their heads because it said your instead of you're
true
Anyone can help?
just pointing it out, when you notice a small detail like that it drives you mad >.>
DMChannel is undefined
well for me i dont care anymore about your and youre xd
but what was "Telling someone "google it" is run and unhelpful." supposed to mean
is rude?
the channel doesnt exist yet you need to create it first
await message.author.createDM()
@grizzled raven doesnt the dmchannel already exists?
no, its like if i started one with you, there'd be no messages or anything cause i just started it with you
Why would you need that
if there was already one dm channel, discord would probably be dead
If you're just planning to send a message
It should create one upon the DM message being sent
i think they are also trying to collect from the dm channel
It's handled by the same event
On_message
Only difference is between a guild message and a DM message is guild object is None
.on first argument has to be a string
Hey, I'm pretty new to JS.
While trying to run this code I received this error:
import * as mySE from '../mySE/meSE.js';
And I don't get it. π¦
@worn drift sry told ya wrong bot.on("message", async function(message) {
@ruby talon node doesnt support that, at least not the version glitch is on afaik
@ruby talon glitch don't supports import
oh god what the fuck have you done
that
You can enable importing modules like that, but using require is >
me?
I'm running on local.
What should I install to be able to run the import thingie?
You don't pass the class to it
Ah
You pass an instance of that class
Ok, I'll try Kino.
That entire code
Doesn't require using those classes like that
You should be able to just create a message collector from a message instance
And yes
You can't just change it to lowercase and have it working
oh wait
You've actually created a DMChannel variable

Just like
Don't
get the dm channel from the user
and then use createMessageCollector on it
How can i do this?
You can get that from the user
(message author)
But I think it might not be there if the bot and that user have never had any dms
So you might have to use createDM() instead
and await that
After that you can use this https://discord.js.org/#/docs/main/stable/class/DMChannel?scrollTo=createMessageCollector
and now i use this?
You also create 2 embeds that are the exact same other than their description, so I suggest creating 1 embed, sending that, override the description, send the same embed again
No
you don't CreateDM() out of nowhere
You call createDM() on the user object
which you can get from message.author
Can you tell me the line?
It returns a promise that'll resolve to the DMChannel, so you'll have to await it and save that in a variable
There's no specific line
I'm giving you all the information you need
You just have to apply it
See there's a difference between helping and spoonfeeding
@earnest phoenix Don't be an asshole
i still use if else command handling
its sure alot easier when you only have 3 commands 
it doesnt make a load of diffrence tbh
like command handlers are better if you have hundreds of commands cuz it just save a lil time
or 100s
tbh if return > if else
@earnest phoenix Don't be an asshole
that wasn't being an asshole, i provided a link to a tip that tells them to learn the language in a more friendly way
instead of having to repeat the same thing over and over again
@earnest phoenix use what works, if your code for something feels ugly or too long, put a comment next to it saying ```cpp
/* XXX FIXME */
then when you know more, come back and enhance and refactor it
i have some ugly if/then/else command handlers in my bot too. i know better, and should use a hash of std::bind or something, but meh. i only have like 10 commands, and will probably never add more.
basically if its ugly and it works, thats what is important because you can always refactor later, right? π
Most of the bots ive written are use -case so i dont use my command handler much
this is the only bot that has not been public
i have a pretty nice command handler i do use for one though
the lib im using isnt centred around commands and has no command handler system built into it, string parsing has been done so many ways and so many times in C++ you can just lift something else in and use it
i tend to use stringstream
i was thinking of using a switch aswell
but not much of a point
im not going to dread over it though
the bot im trying to get approved has 3 commands
and when im done with it it will probably have like 7
Still moving the old database over though
what does your bot do?
The one im trying to get approved or the one with the command handler?
either/both? im just nosy/curious about other peoples developments
The one with a command handler controls and deploys game servers for a specific game
Aswell as handles bans and firewall rules for the server its on and a few remote servers
You can think of it as a SQL interface with a loop
thats about it
so
i write my own iptables file within the bot
then have a cron job to reload that file every x minutes
ah, ok
pretty straight forward
thats why it says 'this wont last long'
it says that as a joke
like he wont be whitelisted for long
the network rules are persistent
i do a lot of stuff through crontab too, like updating bot lists server and user counts thru their apis, i put my counters to a mysql table and a cron job posts it to all the lists at once every 10 mins
So i did some tests....
many many attempts later
and we're still defeated by BytesIO
they still havent given you cert yet spider?
the second bot the one i want to get approved is just a tarkov helper
for the game tarkov
i heard that the person who approves cert is away till late feb/early mar
i sent them my letter early december as soon as i broke 150 servers or whatever the minimum was
by now im close to 900 lol
i might break the big 1k before they look at it
I also have a voice receiving based bot, but it has approval issues
the whole recording everything ppl say
ngl sporks is one of the best new bots ive seen in a while
in terms of how its made and the concept itself
What is it?
it has two basic functions celty, to learn transparently from chat, and be able to respond to simple questions, and to allow server owners to script it in javascript
without me having to worry that they'll obtain the bot's token or other nonesense
ooo

