#forked repo: https://github.com/ausboss/PygDiscordBot
apparently people still use this. I appreciate that so I will start improving the main repo again. I added a few changes.
-There is now stop token support. Update your .envs based on the new sample env. just list words that you dont want to see the bot say divided by ,
-bot will now say your display name and not your username
-i modified the endpoint and conversation history to use langchain and soon i will add oobabooga support. i just need to add a line to detect what api you put as the endpoint. (ADDED)
-more to come soon..
This Discord bot utilizes LLMs and character cards for casual chatting. The bot supports JSON files and tavern cards, offering the option to automatically update the bot's image and name.
- Clone the repository.
- Modify the variables in the sample.env file and save it as .env in the same folder.
- Run the setup.bat file.
- Run the run.bat file.
- Choose the character.
Please note that Discord only allows bots to be renamed twice per hour.
- DISCORD_BOT_TOKEN: Obtain this token from the Discord Developer Portal. Guide for setting that up
- ENDPOINT: Set the endpoint variable with the KoboldAI URL obtained from this colab. Simply press Shift + Enter to run the cells until you acquire the API URL. Alternatively, if you have a powerful GPU, you can run Kobold locally using Kobold or its Kobold 4bit fork. For more information on running it locally, refer to: Local Installation (GPU)
Currently, these commands are primarily useful for developers. If you don't see them, use the /sync
command to force their appearance.
Command Name | Slash Command | More Info |
---|---|---|
Sync Commands | /sync |
Forces the slash commands to appear immediately. |
Reload Cog | /reload <name> |
Reloads a specific cog instead of restarting everything. |
Regenerate Last Message | /regenerate |
Removes the last message and generates another one. |
Windows 11:
Windows 10: