a Discord retard bot, originally created for r/okbuddyhololive.
the code is already like 6 months old, so it's clumsy, sorry if it's too messed up
- make sure you are running Python 3.8+
- make an application on the Discord Developer Portal
- install all modules from
requirements.txtusingpython -m pip install -r requirements.txt - download & install
averaged_perceptron_taggerfor NLTK usingpython -c "import nltk; nltk.download('averaged_perceptron_tagger')" - rename
credentials.example.pytocredentials.py& copy your bot token indiscord_token- a DigitalOcean API token is not required, it's only used for
pd billing
- a DigitalOcean API token is not required, it's only used for
- configure
assets/config.pyto your liking- some settings are not configurable, but you can change them in the code (i don't know why i was doing that lol), ex.
pd impregnateworking everytime on your own account
- some settings are not configurable, but you can change them in the code (i don't know why i was doing that lol), ex.
- gather messages for the Markov chain in a MessagePack format & save it as
assets/memory.msgpack- you can use the
generate_msgpack.pyscript to generate a MessagePack from a text file split by newlines
- you can use the
- run
python bot.py
if you have any problems with running cocobot, feel free to make an issue on this repository
while i don't plan to make any new features, if you see a bug or something you want to add, feel free to make a pull request on this repository. i'll be happy to review your pull request and make it live :D