Hyunwoo Kim - Github: hyunwoo312 & Discord: hy#1999
Ryan Perry - Github: RPerry57 & Discord: Perry#0057
Matthew Li - Github: officialmattli & Discord: bigmatt#5217
Andy Huang - Github: Andy051 & Discord: Azurnity#3835
Devin Huang - Github: huandevi & Discord: crown jewel#9588
Tom Chen - Github: TomChen7 & Discord: AiRz#9535
- You will first have to install poetry and virtualenv
# install poetry and venv in your system
$ python3 -m pip install poetry==1.3.2
$ python3 -m pip install virtualenv
-
Clone this repository into your desired workspace
-
Navigate to the cloned repository
$ cd /path/to/your/cloned/repository/DiscordBot
e.g. cd /home/hyunwoo312/docs/DiscordBot
- Create your virtual environment
$ python3 -m venv .venv
- Activate your virtual environment
# initialize your virtual environment (Unix/Linux)
$ source .venv/bin/activate
# initialize your virtual environment (Windows)
$ Set-ExecutionPolicy Unrestricted -Scope Process
$ .\env\Scripts\activate
- Install dependencies
# install all the dependencies
$ poetry install
- Initialize your virtual environment that you set up
# initialize your virtual environment (Unix/Linux)
$ source .venv/bin/activate
# initialize your virtual environment (Windows)
$ Set-ExecutionPolicy Unrestricted -Scope Process
$ .\env\Scripts\activate or .\.venv\Scripts\activate
- Install dependencies (skip if you already did)
# install all the dependencies
$ poetry install
- Start the bot!
Note: You need to have the ENV file, which has the Discord Auth Token to start. Ask Hyun for File
# start up the bot (Linux/Unix)
$ poetry run task start
# start up the bot (Windows)
$ poetry run task start_win
-
Always make sure to commit your changes to a SEPARATE remote branch (e.g. NO direct commits to
mainline
is allowed)Refer to this article on creating your own local & remote branch for changes you wish to make https://stackoverflow.com/questions/1519006/how-do-i-create-a-remote-git-branch
-
Always make sure that your commits pass all the lint tests (the linting tests will automatically run when you commit)
You can manually run the linting tests by executing the following
$ poetry run task lint