Attempt to make some kind of an awesome Discord bot using discord.py.
Collecting ideas and possible functions for this bot in Trello
Running locally you need to install Python 3, pip, pipenv and the necessary modules from requirements.txt. (These are the versions I used to make this bot, but probably with earlier version it would work).
Python you can download from Python website.
Pip should come when you install Python. But if not for some reason you can install it via this link
Pipenv can be installed via this link
Finally when you have everything installed you can build this project and run locally.
First download the code.
git clone https://github.com/robado/chika_bot.git
After code is downloaded install virtual environment for the project.
cd chika_bot/
linux: python3 -m venv bot-env / windows: python -m venv bot-env
Then activate the virtual environment and install the necessary packages.
Linux: source bot-env/bin/activate / Windows: .\bot-env\Scripts\activate
Linux: pip install -r requirements.txt / Windows: pip install -r requirements.txt
After the installation in complete the bot can be ran. Change these values with your own.
Linux: python3 main.py / Windows: python main_bot.py
In the file config/.env is stored the Discord bot's token.
TOKEN=<TOKEN>
#Discord channel ids
DISCORD_CHANNEL_ID=<channel id> # This is for the bot-spam channel id
# reddit config
CLIENT_ID=<CLIENT_ID>
CLIENT_SECRET=<CLIENT_SECRET>
PASSWORD=<PASSWORD>
USER_AGENT=<USER_AGENT>
REDDIT_USERNAME=<REDDIT_USERNAME>
SUBREDDIT=<SUBREDDIT>
REDDIT_BASE_URL=<REDDIT_BASE_URL>