A Discord bot impersonating users via webhooks, based on their messages, using Markov chains.
Originally created for r/okbuddyhololive's Discord server, but it can be used for other servers as well.
It uses webhooks to send message to a channel with a custom username and avatar (although, the [BOT] tag is still visible next to the name) & it uses Markov chains to generate messages.
Before running the bot, make sure you are running Python 3.8 or later. You can download the latest version of Python from Python.org.
The bot also requires the Message Content Intent, as well as the Server Members Intent.
Code > Download ZIP
button.config.toml
file, according to the comments in the file.DISCORD_TOKEN
with the bot's token, that you can get on the Discord Developer Portal.
export DISCORD_TOKEN="<BOT_TOKEN_HERE>"
in the file ~/.bashrc
or ~/.zshrc
(depending on your shell).MONGODB_CONNECTION_URI
with the connection URI to a MongoDB database.pip
.
py -3 -m pip install -r requirements.txt
.python3 -m pip install -r requirements.txt
.python3 main.py
or py -3 main.py
, depending on your operating system.If you want to contribute to the project, you can fork the repository on GitHub and make a pull request, if you want to.
We kindly welcome any contributions, even if it's just a simple grammar fix!