A multipurpose bot created exclusively for Garrixers.
To try the bot, join the Martin Garrix Discord Server here.
This project was written in Python 3
The bot was primarily built upon the disnake API wrapper, and Postgres
for the database. Asyncpg
was used to establish connections to the database.
The bot also uses YouTube
and Reddit
APIs for certain functionality.
To set the project locally, the following steps are to be followed.
- Go to the Discord Developer Portal, create an application. Create a bot and note down the bot's secret token. Go to Ouath, select
bot
and copy the bot invite link withadministrator
previleges. - Create a PostgreSQL database and note the database uri down.
- Get yourself YouTube API and Reddit API tokens.
- Create a
.env
file in the root directory of the project and paste the following.
TOKEN = "Bot token"
POSTGRES_URI = postgresql://postgres@localhost/<dbname>?user<=username>&password=<password>
REDDIT_CLIENT_ID = "Reddit Client ID"
REDDIT_CLIENT_SECRET = "Reddit Client Secret"
YOUTUBE_API_TOKEN = "Youtube API Token"
ERROR_CHANNEL = <ID Of Channel to send error messages in>
- Create a virtual environment and run
pip install -r requirements.txt
to install all the necessary dependencies for the bot. - Edit the
utils/enums.py
file to add values of your own server. Make sure values are correct as it might lead to the bot not working as intended. - Run the bot using
python main.py
. The bot should now be running and will automatically create tables in the database if everything was configured correctly.
That's it, have fun ✚✖