Source code of Mustang Bot in the Cal Poly Class of 2026 Discord Server
- Python 3:
- Discord.py
- async
- os
- psutil
- virtualenv
- Visual Studio Code
In the case you are interested in just using the bot, you can invite the bot to your server by following this link.
To get a local copy up and running follow these instructions.
- Create a Virtual Python Environment
- Creating a Virtual Enviorment (Linux):
virtualenv .venv source .venv/bin/activate
- Creating a Virtual Enviorment (Windows):
pip install virtualenv virtualenv .venv .venv/Scripts/activate
- Creating a Virtual Enviorment (Linux):
- Clone the repo
git clone https://github.com/Kaweees/Mustang-Bot.git
- Install/update project requirments (administrator permissions may be required)
pip install upgrade pip install -r requirements.txt
- Configure the following environment variables in a
.env
file for the bot
TOKEN
: bot token
-
Move to the root directory
cd Mustang-Bot
-
Run the bot
python boy.py
In the case you are interested in running the bot via Heroku, you can follow these instructions.
- Log onto Heroku.
heroku login
- Create a new application or open an existing application. Note the name of the application.
- Go to
Settings > Add Build path > Python
- Install the Heroku CLI by following this link.
- Move to the root directory
cd Mustang-Bot
- Create a
.env
file locally and configure it as in Before Running - Push the files to a New or Exsisting Heroku App.
- For a New App
heroku create -a example-app
- For an Existing App
heroku git:remote -a "poly-mustang-bot"
- Deploy the local
main
branch to Heroku remotely
- For the local
main
branchgit push heroku main
- From a branch besides
main
git push heroku branch-name:main
- The bot should be active after a few minutes. Enjoy!
- To stop the bot
heroku ps:stop "poly-mustang-bot"
- Log onto Heroku.
- Create a new application or open an existing application.
- Go to
Deploy > Deployment method > Connect with GitHub
and add this repository. You must have access to this repository on a Github account for this to work, or access to a fork of this repository. - Go to
Deploy > Deploy Branch > Main Branch
to depoly the recent version of the Main branch. - Repeat steps 2-4 whenever the Main Branch is updated to have access the latest features of the bot.
- Go to
Resources
. PressEdit
, and hit the sliding button so that it is on and hitConfirm
. - The bot should be active after a few minutes. Enjoy!
Contributions are always welcome! Please create a Pull Request and include a description of how your Pull Request will improve the overall robot code and what it does.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License. See LICENSE.txt
for more information.
Give this repo a ⭐️ if you found this project helpful!