Skip to content
This repository has been archived by the owner on Dec 26, 2021. It is now read-only.

Global Messaging

Vincent Lee edited this page Apr 26, 2020 · 1 revision

Global Messaging is a function within the bot to send a message to all servers that have the bot. This is used for sending updates by the bot operator, and shouldn't be used frequently.

txt files

All the messages that are explained down bellow are stored in .txt files and support's Discord's flavour of markdown. It also supports the basic sets of emoji by doing a :wave: for 👋.

Update Messages

Update messages are sent when the bot boots up and are used for updates messages, like when we may have added a new set of commands wand want to tell people about it. This works like so.

  • a message.txt file is placed at the root of the project.
  • On startup, the bot checks for this file if it exists it will load the file in
  • Go through each server messaging the first text channel it has perms to post in
  • After messaging all server will delete the message.txt file

Joining Message

When the bot is added to a server it sends an initial message to the first text channel it has permission to send a message in. The file used for this is join.txt