Discord Bot written in Python, deployed on Google Compute Engine.
- On Google Compute Engine, add SSH keys (if any) under
Settings > Metadata > SSH Keys
. - Change default root password via
sudo passwd
. - Upate & upgrade packages via
sudo apt update
, thensudo apt upgrade
. - Install necessary packages for Python development via
sudo apt install build-essential
,sudo apt install python3-dev
&sudo apt install python3-venv
. - Install tmux via
sudo apt install tmux
. - Install git via
sudo apt install git
.
- Clone repo via
git clone [remote] [dirname]
. - Change directory into cloned repo via
cd [dirname]
. - Create virtual environment via
python3 -m venv venv
. - Activate virtual environment via
source venv/bin/activate
. - Install package dependencies via
pip install -r requirements.txt
. - Create tmux session via
tmux
. - In a virtual environment, start Clockwork via
python main.py
. - Feel free to close the window.
- Create new server from template.
- Invite Clockwork to server.
- Run
$setup <date>
withdate
as BotCamp Day 1 inyyyy-mm-dd
.
- Create additional Village Roles & Village Channels to accommodate Students (if necessary).