This project is for running a discord bot that display art using discord.py
Setup Discord Bot
- go to https://discord.com/developers
- Create a bot
- Get the bot token and save it safely
- In bot turn on Message Content Intent
- Clone Github Repo into the perfered directory
- Cd into ART-DiscordBot
- Add .env file with
DISCORD_TOKEN={Your Token Here}
REDIS_HOST=localhost
- Run
python3 -m venv .venv
- Run
source .venv/bin/activate
- Run
pip install -r requirements.txt
- Run
redis-server
in a new terminal window - Run
python3 bot.py
- Press control + c to close bot
- Run "redis-cli shutdown" to shutdown redis database
- Run
Sudo yum install git
- Run
Sudo yum install pip
- Clone Github Repo
- Cd into ART-DiscordBot
- Add .env file with
DISCORD_TOKEN={Your Token Here}
REDIS_HOST=redis
- Run
python3 -m venv .venv
- Run
source .venv/bin/activate
- Run
pip install -r requirements.txt
- Run
Sudo yum install -y redis6
- Run
redis6-server
- Run
python3 bot.py
- Run
Sudo yum install -y git
- Clone repo
- CD into ART-DiscordBot
- Run
chmod +x setup.sh
andchmod +x startbot.sh
to add executable permissions - Run
./setup.sh
- Add .env with
DISCORD_TOKEN={Your Token Here}
REDIS_HOST=redis
- Log out and log back into EC2 Instance
- CD into ART-DiscordBot
- Run
./startbot.sh
- https://www.youtube.com/watch?v=UYJDKSah-Ww&t=356s
- https://realpython.com/how-to-make-a-discord-bot-python/
- https://discordpy.readthedocs.io/en/stable/
- https://discord.com/developers
- https://discord.com
- https://github.com/
- https://redis.io
- https://www.docker.com
- https://docs.docker.com
- https://aws.amazon.com
- Marena Abboud
- Giovanny Teran
- Vicente Rivera