Making a Bot: Allowing for command manipulation in the chat

In a bot I work on, we use either an embedded database (SQLite3) or have an option to let the user use MySQL. So, yes, I would recommend a database for storing your custom/user commands. I would also recommend thinking about how you want them to work in the long run so that you can either design a very generic database table or one that holds information about the command. For example:

  • Having the ability to let a specific user run a user command rather than everyone.
  • How are you storing permissions for commands? Would there be user commands for moderators only, for example? Commands that could be “spammy” that you wouldn’t want brand new users running?

Good luck on your project!

Cheers