A Discord bot that quotes The Golden God from Always Sunny (inspired by u/golden-god-bot). Invite it to your server here!
This is just a project to help me learn Rust.
Rename .env.example
to just .env
and open it up. Fill out the API Keys needed.
- Bot > Token > Copy > paste in a .env file
- OAuth2 > URL Generator > Scopes
- Check
bot
andapplications.commands
- Check
- OAuth2 > URL Generator > Bot Permissions
- Check
Send Messages
,Send Messages in Threads
,Embed Links
, andAdd Reactions
- Check
- Copy the invite URL generated to add the bot to your own server
First thing's first: bots should be running 24/7 so you should have access to a server. If you don't host a home server (well, you should) then a VPS may be a good option. From there, there are a lot of ways to deploy a Discord bot but I prefer Docker.
The baseline Docker image is hosted on Docker Hub. Use notchum/golden-god-bot:latest
in your docker run
command to pull that image.
Once in the golden-god-bot
directory, build the image:
$ docker build -t golden-god-bot:<version> .
After you have the image, create & start a container:
$ docker run \
--name golden-god-bot \
--restart unless-stopped \
-e TZ=<timezone> \
-d golden-god-bot:<version>