Skip to content

Instantly share code, notes, and snippets.

View Yernemm's full-sized avatar
👀
Hmm

Yernemm Yernemm

👀
Hmm
View GitHub Profile
@Yernemm
Yernemm / snocord-plan.md
Last active December 3, 2019 23:37
Plan for SnoCord.

Plan for SnoCord

  • Main class is SnoCord.
  • A Response class is a structure for whenever a bot responds to a user message.
  • A Command class is a child of Response and provides additional functionality including prefixes, command parsing, and permissions.
  • Commands can be added one-by-one with method calls.
  • Additionally, a command handler functionality is included which loads all files from a given directory as commands - These ones would have to have a predetermined structure.
  • Provide some default commands which can be optionally enabled, like the help command.
  • SnoCord may use SnoDB to implement a persistent permission system.
  • For this, a Permissions class may be used which is called from each Command instance.
  • A respond method is to be implemented for use in commands which passes a message to client.send() whilst also providing rate limiting and logging.