A python-based discord bot using discord.py
for python 3.11.
- Clone the github repository
- Fill out
src/config.example.ini
and rename it tosrc/config.ini
- Put your own discord user ID as an owner in
src/permissions.example.ini
and rename it tosrc/permissions.ini
- Install python modules from
requirements.txt
- Install python module
spacy
and then its English language model viapy -3.11 -m spacy download en_core_web_sm
- (Optional) Get a Google Cloud Translation API key here and set it as an environment variable as described.
- Go to
src/
and runpy -3.11 ./bot.py
-
Simple toy commands (
src/general_commands.py
) -
Simple script that checks messages for specific patterns to reply/react to (
src/patterns.py
) -
Downloading, searching through and sampling random captions from youtube videos ((currently broken)src/resource/youtubecaps
) -
Users can upload txt files, sample quotes from them, generate Markov chains from, apply NLP analysis, etc. via bot commands (
src/resource/upload
) -
A unique scripting language designed to be used via discord messages (codenamed as "pipes"
src/pipes/
)- One-time scripts can be quickly written or copy-pasted to generate amusing results
- Reactive scripts can be made to perform simple toy tasks (e.g. react to every mention of bananas with a banana emoji) but can be used to script more complicated interactions (e.g. fetching a picture from a matching Wikipedia page when a user says "show me xyz"), without ever having to leave the discord message box or write a line of python code.
(See PIPESGUIDE.md for more information)