Skip to content

robado/chika_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Chika Fujiwara Bot

Attempt to make some kind of an awesome Discord bot using discord.py.

Table of context

To-Do List

Collecting ideas and possible functions for this bot in Trello

How to run locally

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).

Installing Python

Python you can download from Python website.

Pip

Pip should come when you install Python. But if not for some reason you can install it via this link

virtualenv

Pipenv can be installed via this link

Running bot locally

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>

Useful links


About

Discord Chika Bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •