The UCC Netsoc discord bot has the following features:
-
Allows UCC students to automatically register as a member for the public Discord Server
-
Allows committee members to publish events and announcements to multiple mediums using one command. This includes:
- The public discord server
- The website (coming soon)
-
Recall events/announcements from these platforms after being sent
When we decided to implement the features allowing the posting of events/announcements, we realised that the bot could no longer be server agnostic.
For that reason we decided to reimplement the bot with the ability to watch/read our consul K/V store to allow for real time configuration of what servers/channels require elevated permissions.
-
Ensure you have both docker and docker-compose installed.
-
Ensure to clone this repo and the Netsoc dev-env.
-
cd into
dev-env/discord-bot
and make a file calleddocker-compose.override.yml
. Ensure it contains the following:
version: "3.7"
services:
discord-bot:
environment:
- DISCORD_TOKEN=Put discord token here
volumes:
- /path/to/discord-bot/repo:/bot
- cd into the
dev-env
and run./dev-env up discord-bot consul
. - Go to consul at http://localhost:8500 and set the following K/Vs in
discordbot/
:channels
:{"public_announcements": "id", "private_events": "id"}
servers
:{"public": "id", "committee": "id"}
welcome_messages
:["Hi %s, whats up?", "Yo %s"]