Ask coding questions

← Back to all posts
Problems with my code
CouchPotato1808 (1)

So... I am coding a discord bot and wanted it to code some banking commands so I have an economy for my Discord Server. Since Im still new to the whole thing, I will probably ask for more stuff in the future, but for now I would be really thankful if you could tell me how I fix the following error: If i type the command "!join", the bot notices it, but doesn't reply with the wanted message. Instead it gives out a kind of error code which says "fs is not defined". Thanks for the help btw.

Answered by InvisibleOne (2934) [earned 5 cycles]
View Answer
Comments
hotnewtop
InvisibleOne (2934)

Shoudln't it be if (args[0] == '!join')? I don't know discord.js though.