I am in the process of creating a Discord bot, and I have gotten pretty far. However, I keep getting this error when I try to connect my bot:
ReferenceError: bot is not defined
My main file's code is here. I have defined the constant variable bot
to require the Eris library.
However, when I try to run the code, my command code throws the error mentioned above. I have tried to use multiple versions of module.exports
but nothing seems to work. My command's code is located here.