A collection of open source discord bots built with python.
-
Clone Github Repository
-
Export the following environment variables.
- BOT_TOKENS = '{"search": "discord_bot_token"}'
- GOOGLE_SEARCH_API_KEY = api_key
- GOOGLE_CSE_ID = google_cse_id
- DATABASE_URL = Postgresql database URL
-
Install dependencies
pip install -r requirements.txt
-
Run the
app.py
filepython app.py
Currently the following bots are added.
- Search bot
More bots can be configured by adding package name to REGISTERED_BOTS
variable in settings.py
file
Learning building a discord bot with python
-
Replies "hey" to your "hi"
-
Allows to search a term/phrase on google (top links) through discord. Usage:
!google nodejs
-
Allows to search for recent queries through the search history. Usage:
!recent game
-
Persistent search history using a postgresql database