A Discord bot that can extract messages from users and generate new messages from any corpus.
It uses a Markov Chains algorithm and an n-gram model to generate the text.
- Clone this repository or download it.
- Create a "corpus" directory in the app's folder.
- Open your terminal/console and navigate to the app's folder.
- Run bot.py using the command below.
python3 bot.py
Once the bot is running, the owner or the server members can use the command !textgenhelp – in the chat – to get information about the bot's commands.
- Extract all the messages sent from users in a given channel.
- Generates new messages based on the given corpus or any corpus.
It's important to keep in mind that the generated text is highly dependent on the corpus, so make any necessary tweaks to the preprocessing.
It's powered by the advanced Natural Language Processing library spaCy!