This is a mini-project to connect a discord bot to a language model so that it might generate interesting responses from a prompt.
I'm using the following:
Of course these have their own dependencies, I'm not your package manager.
With any luck you only need to do the following:
- Install the dependencies
- Clone the repo
- Create a
config.json
that has at least a single keytoken
with your bot's token. python main.py
Optionally you can pass the path to a JSON file as the first command-line argument to main.py
.
The bot is currently configured to listen for messages that start with "$transform" and passes everything that follows in that message to the language model to generate follow-up text. The generated text is sent as a new message.
- Add a link to your GitHub repo as the
github
key inconfig.json
to hook up the$github
command (else it'll point back to my repo 😝 )
This is for fun, it's not intended to be anything. There are probably many bots like this, but this one is mine.