Skip to content

GODBLISH-Egirls/DiscordBot

Folders and files

NameName
Last commit message
Last commit date
Feb 9, 2023
Feb 9, 2023
Feb 28, 2024
Jan 28, 2023
Jan 29, 2023
Feb 9, 2023
Jan 31, 2023
Feb 9, 2023
Jan 28, 2023
Feb 28, 2024
Jan 30, 2023
Jan 31, 2023
Feb 4, 2023
Feb 9, 2023
Jan 30, 2023

Repository files navigation

DiscordBot

pre-commit

Contributors

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

Set up this repository

  1. 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
  1. Clone this repository into your desired workspace

  2. Navigate to the cloned repository

$ cd /path/to/your/cloned/repository/DiscordBot

e.g. cd /home/hyunwoo312/docs/DiscordBot

  1. Create your virtual environment
$ python3 -m venv .venv
  1. 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
  1. Install dependencies
# install all the dependencies
$ poetry install

How to run the App

  1. 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 
  1. Install dependencies (skip if you already did)
# install all the dependencies
$ poetry install
  1. 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

Contributing

  • Always make sure to have your virtual environment active when making/testing changes to ensure our bot is running with only the expected environment settings.

  • 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