== We're Using GitHub Under Protest ==
This project is currently hosted on GitHub. This is not ideal; GitHub is a proprietary, trade-secret system that is not Free and Open Souce Software (FOSS). We are deeply concerned about using a proprietary system like GitHub to develop our FOSS project. We urge you to read about the Give up GitHub campaign from the Software Freedom Conservancy to understand some of the reasons why GitHub is not a good place to host FOSS projects.
Any use of this project's code by GitHub Copilot, past or present, is done without our permission. We do not consent to GitHub's use of this project's code in Copilot.
A Discord bot intended for fun and utility
Built on Python 3.11.6, unfortunately tested on 3.12
- Some commands do not respect the ENABLE_LOGGING setting
- Versions of Python other than 3.11.6 are untested
- Intended for use on Linux. Windows and MacOS are untested
- Android (through Termux) is supported
- Linux (only Ubuntu, Debian, and Android have been tested)
- Python 3.10 or newer
- Approximately 1 GB disk space
- 300-500 MB for source code
- 500 MB for dependencies
- Extra space for cache and logs
- Python 3.10 or newer (
sudo apt install python3.11-full python3.11-dev
) - Venv (
sudo apt install python3.11-venv
) - PyCord (
pip install py-cord
) - DotEnv (
sudo apt install python-dotenv
) - zbar (
sudo apt-get install libzbar0 && pip install pyzbar
) - Nest Asyncio (
pip install nest_asyncio
) - Asyncio (
pip install asyncio
) - Pillow (
pip install pillow
) - BS4 (
pip install bs4
)
Complete pip install string: pip install py-cord pyzbar nest_asyncio asyncio pillow bs4
NOTE: On some systems, it may be neccesary to replace pip
with python -m pip
or python3 -m pip
Obviously, if your system has a package manager like yay
, use that instead
- Download and extract source code
- Create your Venv or Anaconda environment
- Install dependencies
- Create a folder named
cache
- At the root of the project, create a file named
.env
- Use the .env template and set your env variables
- In
resources/shared.py
, setINVITE_URL
to your bot's URL,GIT_URL
to your GitHub URL, andREGISTERED_DEVELOPERS
to your UUID - In
resources/shared.py
, set your configuration. Be sure to set these:DISALLOW_PLATFORM LEAKS
DISALLOW_SYSINF_LEAKS
ENABLE_LOGGING
LOGGING_BLACKLIST
These are .py files you can use in your own projects. Please give credit!
scripts/api/discord.py
: an up-to-date and easy to use API wrapper for extremely common use-cases. Designed to fill the gaps of PyCord; it is NOT a replacement for PyCord
To get a list of all commands, use Fritz's help
slash command