(somewhat under construction)
if you have used discord.js before (which you should), you would know command processing begins with a message event. This starts with:
- first, it starts in
generateListeners()
inserver.js
- then it finds the correct file and command in
command_center.js
- it is then executed using
command.execute(message, args);
, usingmodule.exports
- then the DB (xp) gets updated and ad stuff happens back in
command_center.js
commands are using node.js module.exports
, and each command is a file in ./commands
data are from:
- google sheets (see below)
- extreme bloonology - real site vs where we actually get the data
- local data -
./jsons file
when the bot is first started up, the btd6 index google sheets doc
object is "saved" or "cached". this is mainly only done in ./helpers/google-sheets.js