#development
1 messages · Page 414 of 1
ok
how did u make that akinator???
I am waiting for my bot to get approved for 1 decade
using the api from akinator
-bots
@tame falcon
there isn’t any docs
ooh
but you can set events and run off it
Gotta give it a try
mhm
@earnest phoenix I have your bot in my server
o nice
most of us do @amber token
IKR
It's one of the most widely used ones
hopefully my new bot can make it
Lets not chat here and not break the rules
though most servers just have Mee6 and Dyno
Can someone help me fix the error.
So Basically
If I say M>say Hi.
The bot says: saysHi.
VoiceChannel.members.map(x => x) maybe @zenith pasture
yeh @lament meteor but i cant find it..
boi
?
Hey, this is a little strange but it would make life so much easier if I knew anyway if this was a thing... What I want to do is content.match a specific string in a message but then single out the entire word that set of the .match and test if it is something else or the word that's the problem. Just to make it easier to understand I'll describe my exact situation... So it's a censor bot, and right now it content.match the whole string and for example someone says ass, it'll censor, but then it'll censor assassin, what I want to do is to single out the whole word that contains the word that sets off .match so then I can check it and return; if the word matches assassin, but I can't just do it in a list of seeing if it matches assassin then return cuz someone could says assassin, then other curse words so I want a function for each word then test the word in specific...
Language: js
Tag me if you respond pls
I'm not reading that whole thing
^
then don't, no one asked you to
Essentially they want to look for a certain word and delete the message if it has it
I'm just joking about how long it is.
without something like assassin for example being deleted for having "ass" in it
🤷 i don't use js xD
you'll probably have to lower case the message content
^
you could split the string by spaces
and get each word there
and check if any of your bad words is in the list
you can also do
var badw = " ass "
instead of
var badw = "ass"
@slim heart
but it be better to split it
The authenticity of host [ip] can't be established.
wat fak
var RamUsage = Process.GetCurrentProcess().PrivateMemorySize64;
this returns 0 on my VPS lul
@floral stone Ass is just one example
how to make my bot send random question then when the message author response the bot check if he answered right or no (i know how to send random message and how to wait for messages but don't know how to check if the response === random message answer)
maybe try assigning the variable to the wait for
Is it maybe possible to go word by word and test over and over?
Like "hello there" it'll scan hello then do whatever, then do the same to there but seperately
Actually nvrm that's what you said before lmaoo, how exactly would I split each word and like make it a variable or some crap idek
So that I can test it over and over
Like would i have to do message.content.slice().trim().split(/ +/g)
And then just arg[0-Like A Million] each time cuz that'd be really annoying there's gotta be a better way of doin it
would
if(message.content.has("www"));
``` work?
?
this doesn't explain anything
it does
Not for me
you should use regex
you've told me that three times, I got it the first time
Now, if you're not actually going to help, pls stfu
better tutorial
and listen this is the way of doing it, everyone here uses regex for links, and I do try to help by pinpointing you to websites that you can learn from
Sending the same one three times and having me tell you it don't work and sending it again ain't helping
Either way its fine the way it is
it shouldn't get muted for that
because it deletes links
it should be disabled by default
Ok
oof resource hungry
It's rlly messy but it works so i mean whatever lmaoo
thats what i already have
but lets say i say assassin
it'd pick up "ass"
so what im doing is if it finds "assassin" in that one word then it'll return; and then not censor it cuz its not bad
is that just a bad word filter
umm you shouldn't use a regex
that is regex
LMAO
like " ass "
.match
so it is a word
nope
yes
no
there is a space
bad word filters are stoopid
cuz it has a space in front
so it is a word
ew
this is my current regex
oh no
bad word filter
very bad word filter
nice way to get bot muted here :^)
but fr it keeps messing up so i wanna make it bettor
Yeah i have it ignoring dbl
also im pretty sure it is already muted LMAO
you should make it optional
mysql isn't related at all 
it looks for 0 or 1 in my mysql server and if it's 0 then it skips over everything (aka disable)
yes..
you should use a hashmap (or dict or whatever)
no idea what that is hehe
i run 7.6 mysql queries a second kek
ofc it checks over every msg cuz it has to?
If you're checking something on a database every second I sure damn hope you're using a mem cache
you should have cache in case the bot is rebooting
No you just have cache in general
umm yes
idek whatever idrc lmaoo
What lib are you using?
You'll care about caching eventually
science turtle said it should ignore this server
Just wait
Ur prolly right but i have no clue even what it is now 
It will have problems in dbl
wym
Bothell will overkill it
cough
if(message.guild.id == "264445053596991498") return;
cough
Lol
theres no way i can cache something if its constantly chaging
DBL isn't your main problem anyways
its the big ones
Are you just going to if (guildid == VERY_LARGE_GUILD) return to EVERY one of them?
You possibly can't
Also even small guilds can make enough noise
Depending how often they chat in it/do stuff
^
Some people even like to spam messages for fun, RIP bot
how would i store a function in another file so it can be called by multiple seperate programs
in what language
js
there's a global object called module.exports independent to a js file
and the value you assign to it is the value returned when you require() that file
so i can make a seperate .js file and then call it as a module in both programs?
e.g. you could have a file called thing.js that contains the code ```js
module.exports = function(x) {
console.log('Hello, world!');
};
then you could, in another file, go
const f = require('./thing.js');
f();
and it would print Hello, world!
Alright dope thanks
Okay new problem with that, is there anyway i can define some of the things outside of the export? cuz it wont even define message on its own none the less some of the things i need to define other then it
its just a bunch of ReferenceError's
@glossy sand
Nvrm
but also now is there a way to like break a forEach thing
Cuz if two args match the things i specify it'll do the function twice, so is there a way to like break or whatever the whole forEach statement
you can require stuff in your file too lol
how would i go making a poll command using reactions
send the message -> add the reactions -> create a message collector for the reactions -> profit?!?!?!?!?! @knotty steeple
can i get like an example or something
Google it
^
yo, can someone that uses discord.py, dm me? thanks!
why not ask your question here
because im stupid asf and rather than showing it to more people, ill just show it to one person
ok ill just do it here haha
so
my bots were all red bots
and now i wanna start making a bot from scratch
and i am having trouble running the code to turn on the bot
ill gist my code
i got it to be in the console, but keep on getting the Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x0374AB10> error
thanks c;
@knotty steeple what lang
oh yeah
Change your token while it's not too late
lmfao there
for wat
U said u need reaction polling
Eh.. there should be a ReactionAdded event. Or similar
Eris is better but in djs you have reactionCollector
If u use a command. Assign the message id of the poll message to a variable. In the ReactionAdded event, keep the tally depending on, if (emote.name == .....) voteYes++.
Or if these guys who know discord.js know a better solution
@static lynx is that the only error in the logs?
Im a eris guy but i do know djs
yes
No issue modifying in c#
@static lynx TBH I haven't used discord.py but are you sure you need to be passing in the client ID to start the bot? Seems like you should be passing the token
well i’ve been reading this guide, and already asked 2 people
It seems like you're not using the token anywhere
That is the only thing that jumps out at me

:p
wait wtf
guys
im creeped tf out
i turned on my bot and as soon as it was on, it replied to my messages

like randomly it said "oof", "rip in the chat", and "hi" in random channels
How would I go about turning html into a jpg in java?
You mean like downloading a jpg from a url in the html?
nono
i mean i have a string containing html and I want to take a capture of how it would look in a browser
that's the only java library I know off the top of my head that can render HTML into an image
perhaps try one of these? https://stackoverflow.com/questions/17061682/java-html-rendering-engine
o ya i tried that
it had a problem with formatting and external css
actually it had a problem with css all together
ye ima try it
look how creepy lmfao

ik this might sound kinda stupid but how would i make it so that an error doesnt put up a gigantic message in console? cuz in order for my bot to work it has to throw a noncrash error so it just kinda spams
js
try {
// ... code that throws error here ...
}
catch (e) {} // void error
or if you're using promises
errorousStatement().catch(e);
I DONT want it to say the error
I want it just to ignore it in the console windows but still do whatever error things it does in the background
It's weird but basically I need to break a forEach statement and it can only happen under and error
Well if u know what the error is, write a condition in the loop for it.. null reference,.. etc
no idea how 😮
Do you know why the error is happening?
Yes cuz im trying to console.log something undefined (on purpose)
You can put your try/catch inside your loop... try { console.log(logThis) } catch { console.log ("custom log message when error happens"); continue;)}
Or before you log something that isnt null... in c#.. if (var == null) { console.log ("null message"); continue; }
but that voids the error
What do u want to happen when it errors?
I want it to do its normal thing but not say anything in the console window
Thats what that code would do.. continue would simply skip that iteration of the loop, and move to the next
U dont have to log anything
But I don't want to continue on to the next loop
I want to break the entire forEach statement
If (var == null) break;
K
Alright, so, line 8 has the error
which is in a function that is run everytime an arg matches all the stuff
What i need is ONCE the arg is matched and the function is ran, i dont want it to keep checking all the other args
Line 8 is a console log
So i have to error
in order to stop the forEach from continuing
Yes i console.log a non existent variable to crash the statement but not the entire bot
Then make all your conditions in your arg checks require that bool to be false. Or do what gpw said, if that works
it will return first element matched by testing function specified
But you'll have to adapt a little your func
Alright now the error isnt even do it IDEK im to tired ima go to sleep sorry for bothering gn lmaoo
HELO
HelP*
raise MissingRequiredArgument('{0.name} is a required argument that is missing.'.format(param))
yes lmao
trying to just get simple commands to run on my bot. its not sending anything to the channel
i even tried the copy online, still got the error
ah
I have no experience with the python framework
hopefully someone will show up who does
k hold on
Traceback (most recent call last):
File "C:\Users\---\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\bot.py", line 846, in process_commands
yield from command.invoke(ctx)
File "C:\Users\---\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\core.py", line 367, in invoke
yield from self.prepare(ctx)
File "C:\Users\--\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\core.py", line 345, in prepare
yield from self._parse_arguments(ctx)
File "C:\Users\---\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\core.py", line 304, in _parse_arguments
transformed = yield from self.transform(ctx, param)
File "C:\Users\---\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\core.py", line 212, in transform
raise MissingRequiredArgument('{0.name} is a required argument that is missing.'.format(param))
discord.ext.commands.errors.MissingRequiredArgument: self is a required argument that is missing.```
first it was ctx, first it was that and then..
you're using rewrite, correct?
yep
article i used: https://boostlog.io/@junp1234/how-to-write-a-discord-bot-in-python-5a8e73aca7e5b7008ae1da8b
In this tutorial, you'll learn to create a simple Discord bot with Python.
In case you don't know what Discord is, it is
- i don't get why you have a self argument, the function is not a method in a class
- why is
useran argument, i dont see it being used - the only argument should be
ctx
Traceback (most recent call last):
File "C:\Users\---\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\bot.py", line 846, in process_commands
yield from command.invoke(ctx)
File "C:\Users\---\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\core.py", line 367, in invoke
yield from self.prepare(ctx)
File "C:\Users\--\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\core.py", line 345, in prepare
yield from self._parse_arguments(ctx)
File "C:\Users\---\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\core.py", line 304, in _parse_arguments
transformed = yield from self.transform(ctx, param)
File "C:\Users\---\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\core.py", line 212, in transform
raise MissingRequiredArgument('{0.name} is a required argument that is missing.'.format(param))
discord.ext.commands.errors.MissingRequiredArgument: self is a required argument that is missing.```
did you actually save the py file before running it again @static lynx
Does anyone know how DBL/Dbots/Discord generate tokens?
i know it starts with id
https://i.imgur.com/7WdehGn.png discord does dis
thank
👍
Because it doesn't decode it to decimal?
use .toString("ascii") but still doesnt decode to what i want 😐
@earnest phoenix is that the timestamp part?
ye
try one of the Buffer.readInt methods
o
i dont remember if it was 16 or 32
just try both
Well since you're here Tonkku, how does dbl generate api tokens?
there's this nice standard called jwt
so dbl tokens are timestamp, id and if it is a bot or not
i find the last part funny lmao
it's kinda like if it's the new bot token thing
since it was user tokens before lol
o

has anyone made subcommands in discord.py before? I am wondering how i am able to show those subcommands in the discord.py help command.
Cause mine is only showing the main command
Is it even possible?
Does someone know how can I convert YouTube stream using ffmpeg?
i want to do !clear but then the music bot rythm takes over the command how to fix that
not #development related bro
change one of the bot's prefix to something else @sly panther
@earnest phoenix yeah
-botinfo @timber junco
415384977686003712
ChatDefender
1859
Need a timer? Need to ban people on chain messages? Need custom commands? ChatDefender has all of that!
discord.js
cd! | mention | Customizable
70
58 Servers
@grizzled isle
@grizzled isle links get deleted by default smh
-botinfo @gilded plank
264811613708746752
Luca
0393
Luca is a bot for managing and informing members of the server
discord.js
- or @Luca#0393
83
2 Servers
@fossil oxide 
@languid dragon 
@bitter sundial 
Invite | Website | GitHub | Support Server
who's the third owner
Bot commands in #memes-and-media kthx
what a mod
OwO
can bots use emojis from other servers they are in?
Yes bots have the Nitro Emoji feature, although thats the only feature they have from nitro
oh ok
@knotty steeple its harder for non-nitros to grab animated emotes but i found a way around that
since most libraries allow summoning emotes from id's and you can
just list all the emotes
but if you don't have nitro you can't \:animote:
so use dev tools on animated emotes
they can

Yeah I see
@fluid basin i think i know why u think that bots cant use animated emojis
normal emote: <:name:id>
animated emotes: <a:name:id>
:ablobwinky:
xD
ewe async
@earnest phoenix those are the default settings. You have to set it up in the server.
@grizzled isle i don't like the default settings and I'm sure others don't like them either
That's why its configurable 😛
We can help you if you read the channel topic
How can i make cogs on a python bot?
What's a good way to have a clean, non-cluttered command list without using something like Gist?
Like, for example, if you have many commands and don't want them all in one message
write out each command by hand in a custom help command :^)
isn't your bot js?
I personally use a paginated help command 🤷
per category help command is the best
I have yet to add something like that to my command system ._.
still missing permissions as well >.>
but yea that's also good >.>
My boat isn't large enough to need pages lul
Can I get some discord.js-commando help?
How do I disable the default commando help command?
im not sure sorry
there should be an option in the commando client options
nope nvm
try asking the djs server
I like how people assume the first guess after questioning
Who knows how to store just the amount of servers in an embed, no formating
My Bot Server Count ----> DBL ----> Embed
What
So I can store the emount of servers my bot is in using a widget, but how do I store It without the formatting, just the value
So, Imma trying to add a fortnite command, and how do I get it to select specific parts of http://prntscr.com/jir5e1
?
data.solo.mode.kills.value
``` is what I have
https://discordbots.org/api/widget/servers/427873820972679179.svg
Is there a way to just store the 93 server bit?
@earnest phoenix Are you using TRN?
yea but which database are you getting your ststs from?
but data.solo.kills.value don't work either
or data.solo.kills
I've tried those
I am getting it from the fortnite database
ok
where are you getting value from? And provide error
I use that
Where did you get the documentation for it?
Console log data, show me it completely
its my friends fortnite btw
shoot
ignore the id
that's the hastebin
should I be doing data.user.solo ?
data.stats.current_solo.kd and so on
Probably want to look into how js objects work
A question for .NET devs: on your VPS, do you compile your bot, pull to VPS, and run with just the runtime, or do you pull source to your VPS and run with the SDK?
I publish it and run the compiled dll
Who has the time to help me out with embeds?
sure?
@ruby dust Know a lot about them?
Just ask your question and someone will come and help
I had a bot listed here that used only embeds in all responses, so yeah
What is wrong with this code? Don't really understand anything about this.
the indentation is incorrect, I assume
So what do I need to space out?
it can also mean that you are using both spaces and tabs in the same code, check if that is true
phil
I don't understand that? Am not the pro(est) as this sort of stuff.
Startswitch.. prob not a method?
lmfao
Elif message.content.startswitch
I remember when I was dumb enough to define commands in on_message event
Is glitch.com the best place to host bot for free?
I heard it's as good as heroku
Hmm someone said to me once that glitch is better than heroku
honestly, there is no such "free vps", if you found a free one it means it's terrible
Yeah kinda
Some "free" providers have the thing that there is free option and a paid one that is a lot better than the free one.
skysilk is so far the only actual vps that has a free plan that's enough to host a discord bot for up to 500 servers
and maybe more
you should look into that instead
but you do need a credit card regardless, that is just to verify your identity
@earnest phoenix IDLE is... not very good. I'd use VSCode or PyCharm, which are also both free.
vsc best
@shy verge I put the source on a private repo, let Travis CI compile it and do some docker magic and then I put the Docker image on a private Docker repo which my VPS pulls from every few minutes and then runs the docker container.
How's mongodb for large bots? And input
I use the same mongo connection for 4 bots, the biggest two being in ~4k and ~1k guilds
it's pretty great
wh
I may try it out. Queries are a pain for me.
what are you struggling with
pretty simple for me
I find myself looking at the docs when I need an obscure operator, but that's about it
before choosing a database you should keep this in mind
Alright I have a errorous statement on purpose however, but it doesn't crash it only breaks the statement which is what I want, however, I am now incorporating mysql meaning that it crashes the entire bot which is not what I want, is there either a way to make my error not crash fully or is there a type of error mysql doesnt fully crash on
Just fyi, the error is attemping to console.log a non existant variable
Just try catch it or prevent the error from happening in the first place
I need it to actually happen @low owl
I need an error to occur to break a forEach statement
hey ive been getting this error when im trying to run my executable jar the bot works in intellij. This is the first project in gradle and im completely lost
@slim heart I think you are using exceptions wrong 🤔
Wym?
What does your code look like?
currently with what i need is working
What I want to work (has mysql)
It's a little different in some places, cuz one is the actual one running and the other is my testing file
But the only difference im focusing on is the second one has mysql and is full crashing while the 1st only ReferenceError and continues on
@weak turret how are you building the jar?
use the shadowJar plugin
if you used the jda example build.gradle you already have it
so basically use this https://github.com/JDA-Applications/JDA-Utilities/blob/master/build.gradle
no
the example is this ```gradle
plugins {
id'java'
id'application'
id'com.github.johnrengelman.shadow' version '2.0.2'
}
mainClassName = 'com.example.jda.Bot'
version '1.0'
sourceCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
compile 'net.dv8tion:JDA:3.6.0_366'
}
compileJava.options.encoding = 'UTF-8'```
notice the plugins block
you just need to have that and mainClassName
how long it take for the Bot awaiting approval!
+10 hours since you asked
😭
@earnest phoenix 1 hour to 1 week
😭 😭 😭 😭
asking makes it worse
^
never mind its alredy approved
@inner jewel Thank you so much you just saved me hours of headaches

anyone know some alternatives to the context object pattern (excluding singletons)?
I have an issue
I normally do msg.content.split(' ')
How can i do that with the spread operator?
the spread operator does .split('')
wat u mean
.split() is splitting a string on what u ask it to split
so "hi my name is Telk".split(" ") will give ["hi", "my", "name", "is"...]
LOL
Okay just to let you know it's best to not just ask for help. Say what you need help with/post the code you need help with in this channel say the lang and lib of the bot and then wait for someone who knows said lib to respond
Cause otherwise they'll have to wait for you to get back to them to even know if they can help you at all since you didn't say what lang the bot is in
hmm
@wild tide u can use fs.writeFileSync('quotes.json',JSON.stringify(quotes))
after importing the fs module i.e.
then quotes could be the const quotes = message.content.split(" ")
yes
np
I was confused lmao,
happens
ik that now lmao
Try to make some changes to it if it doesn't do it correctly
i will
This feels like a stupid question but is there a way i use the markdown this markdown in something like message.channel.send('Pong! Took: ${response}ms'); but i want this markdown around ${response} and the ' are `. Or do i do it another way?
??
message.channel.send(`Pong! Took: \`${response}\`ms`);
thank you i'm dumb lmao
Hey there
How can i set BOT PREFIX in a python bot
And add {prefix} for example at cmds
For example i have '&&help' i want to delete && from all commands and to save only in main file
@tardy hatch May i suggest reading the discord.py documentation, They explain it all there and they even have examples.
Discord.py has more then one version. So the answer to your question comes down if you are using the latest or rewrite version.
What problem?
how can i get channel id automacilly with my bot through this command:
!SAY-CHANNEL #general HELLO!
C++
(Can't help you with that one :))
JS?
Just try to get #general in the arguments.
In the code the output looks like <# 1234567890 >
Just remove the <# and > and you got yourself a id.
@earnest phoenix ok thanks
i just need to know the step to get id, but i can write script by myself.
Ye i know some languages, but some languages i completely forgotten as it was to stressfull in my head to remember all the different methods 😛
So this is my code: https://hastebin.com/exekutiwot.js but I don't see no error but still the bot won't respond when I use the command.
The language Node.js
The library Discord.js
Also I only installed one of the packages cheerio do you think that might be the error??
Tag me if you think you can help me.
No one?
you have your code wrapped in a function you never invoke
?
Meaning?
Sorry I don't really much about scripting.
I am good with packages.
And like admin command.
consider the following function
function foo () { // module.exports.run
console.log('foo is called');
}
foo(); // logs
that is what you are supposed to have
what you have is
function foo () { // module.exports.run
function bar () { // async function googleCommand
console.log('foo is called');
}
}
foo(); // does not log
you're moving all of your code into a nested function and never invoking that function
Oh I see.
Ok gtg.
Can you explain it to me in my Dms so I can read it all when I get back?
But now when I do that I get a lot of errors.
can't help you if you don't tell me what the errors are 🤷
Lmao
I have a biiiig problemmm
How can i load cogs?
And what need to be in cog file
nvm fixed it.
I don t knoww howwww
is there a way to make two bots tell each other things
Ignoring exception in command pula
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/bot.py", line 846, in process_commands
yield from command.invoke(ctx)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 367, in invoke
yield from self.prepare(ctx)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 345, in prepare
yield from self._parse_arguments(ctx)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 304, in _parse_arguments
transformed = yield from self.transform(ctx, param)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 212, in transform
raise MissingRequiredArgument('{0.name} is a required argument that is missing.'.format(param))
discord.ext.commands.errors.MissingRequiredArgument: ctx is a required argument that is missing.
Help me with this
guys
i have the commands down but discord.js isnt working
it wrote npm install discord.js
this is what it came out with
how dose it work then
i have the commands
i need help putting them onto the bot
atm
Ok so umm you have winSCP?
winSCP?
What are you gonna put all the commands and everything in?
idk
im new to this
ik commands and shit
You have an account right?
on what
What is your host?
IDFK
im trying to find one
ill just use winSCP
ill download it and make an account
Ok.
But,
Make an account?
im using discord.js btw
I ma pretty sure that cost money but ok.
Yeah I know I saw the pic.
winSCP is free it says
Oh ok.
im downloading rn
Downloading is free.
Account is paid.
I think.
it says its free software
Ok tell me when you made an account.
@earnest phoenix
Im not sure what to do here Savitar50
?
:/
he doesnt need winscp if his bot is on his pc
True.
these are my files the top is where my tutorial stuff is
Ok go back to windows power shell.
Type cd app.js
Assuming there is no directory leading to those.
This is what it came up with
Ok so there is a directory leading to those files.
What did you press to get to those files?
Or actually.
Try node app.js
ill try the node
Or you can do node FettBot/app.js
If node app.js doesn’t work.
Het
Ignoring exception in command pula
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/bot.py", line 846, in process_commands
yield from command.invoke(ctx)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 367, in invoke
yield from self.prepare(ctx)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 345, in prepare
yield from self._parse_arguments(ctx)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 304, in _parse_arguments
transformed = yield from self.transform(ctx, param)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 212, in transform
raise MissingRequiredArgument('{0.name} is a required argument that is missing.'.format(param))
discord.ext.commands.errors.MissingRequiredArgument: ctx is a required argument that is missing.
Hello.
Python
Sorry I cannot help you as I don’t know python.
XD
Try node FettBot/app.js
i did from the last pic i sent
Ok.
Anyone wanna step in?
try cd <drag the bot folder here> then node <main file name>
into powershell
cd drag the folder
something like dat
wait wat https://vgy.me/PeRHpk.png
Right?
no sry
isnt app.js a folder? if it is then lmaoaaaaoo
it should be a file
look at the picture... the icon is a folder icon not a file icon
il lchange
And config.json should be a file to.
yes
Ignoring exception in command pula
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/bot.py", line 846, in process_commands
yield from command.invoke(ctx)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 367, in invoke
yield from self.prepare(ctx)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 345, in prepare
yield from self._parse_arguments(ctx)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 304, in _parse_arguments
transformed = yield from self.transform(ctx, param)
File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 212, in transform
raise MissingRequiredArgument('{0.name} is a required argument that is missing.'.format(param))
discord.ext.commands.errors.MissingRequiredArgument: ctx is a required argument that is missing.
but they have a file icon lmao
I have that error
this is what it is now
At embed
No.
WE DONT KNOW PYTHON STOP
.JS FILES
how do i make a js file ffs
@knotty steeple i told u.... it was a folder not a file
it was a folder before tho
can someone tell me how to make a js file pls
bot.js
open it with a code editor
ok
pls look at https://anidiots.guide/ for tutorials. cause u seem to not know anything
Jut app.js has more stuff in it like commands too.
i recommend visual studio code for js files
app.js is here my commands are in
visual studio is for C# and stuff
package.json.... unless u hide the extension
do i change that
oh nvm
it already is
it has a hidden ext
^
package is a json file
what about config change that to a json?
Yes.
ok ill try to change it
umm ok
why not.... u learn js
yea
discordie
idk that was in a tutorial for discord.js
wait thats the package.json for discordie
i think so idk
ok
Just pls step away and learn js and get familiar with node.js cause this is taking us no where as.......
yup
i think
oh
when you do that then npm init
Init?
it makes a package.json for u
Oh.
You are still in the wrong one.
Do control c
how i did shift click on FettBot folder
it says package name
what do i name the package?
Package.json?
no
just do npm init where your app.js file is
IT IS IT
what do i name the package!!!!!!!!!!!!!!!!!!!!
JUST DO npm init WHERE YOUR FILES ARE AND CONTINUE WITH IT
Anakin are you still in npm?
@earnest phoenix google learn node.js
the package name is your bot name essentially
Yeah.
If you are using JS use VS Code.
VS is for C# and other stuff like C
is it free?
Yes,
ok ill download it rn
he does iirc
iirc
iirc?
iirc = if i recall correctly
remove .txt
ok
then node app.js
ahh done
ill try node .js
this is what i came out with
Wrong token,
oh
is it the bot user token?
go to your app
ahh yep
so you wont get the error you got before
ok
no
wait
my commands
is that last command meant to be my bot user token?
@knotty steeple
oh ok srry and ty
Samurai in the bot list on discordbots.org do you want me to add u to help users as you helped alot
and i really thank you
it says (config.token) i put my token for bot in and did node app.js and it came up with unidentiefied token
do u know why?
did you put your token in the config.json
yup
wait whats the error
might wanna generate a new token


