a simple Python script for making an AI chatbot in discord
This is only meant for Windows
you will need 3 dependencies for the script to work:
- discord.py (https://pypi.org/project/discord.py/)
- ffmpeg (https://www.ffmpeg.org/download.html)
- gpt4all (https://docs.gpt4all.io/gpt4all_python.html)
then you will need to open the script to insert file locations. after line 35, you shouldn't need to edit anything else (other than changing a discord ID to not be mine lol)
by using the prefix ":" the bot will ignore you, to get the AI to run commands simply type some of the following text into a channel the bot is in.
- : clear (clears the bot's current memory)
- : vc {optional: integer} (makes the bot join the VC you are currently in and plays a random sound that you can specify)
- : leave (leaves the server the command was sent in)
- add linux support.
- build a wiki
- add more commands
- fix chat4AI bug