KanyeBot is a Discord bot built with DSharpPlus and .NET 8.0, designed to bring unhinged Kanye West-inspired interactions to your server. The bot features slash commands as well as prefix-based alternatives for a clean and modern user experience.
-
Random Kanye Quotes
Use a command to fetch random Kanye West quotes from the Kanye REST API. -
Generate Kanye Tweets
Generate new Kanye-style tweets based on his previous tweets using a locally hosted Ollama API. This leverages the dolphin-mistral uncensored model for optimal results. -
Slash Commands & Prefix Alternatives
All commands are available as easy-to-use slash commands, but you can also use the default prefix!for those who prefer classic command styles.
Before running KanyeBot, ensure you have the following:
-
.NET 8.0 SDK
Download and install the .NET 8.0 SDK from Microsoft's official site. -
DSharpPlus
Make sure the required DSharpPlus library is installed. It will be handled during the build process if dependencies are properly defined. -
Ollama API
- Install the Ollama API for local use. Visit Ollama's website for installation instructions.
- Run the Ollama API using the following command:
The API should run on the default address
ollama serve
127.0.0.1:11434.
-
Dolphin-Mistral Model
Set up the uncensored dolphin-mistral model for the best tweet generation results.ollama pull dolphin-mistral
- Clone the repository:
git clone https://github.com/Skypoop/KanyeBot.git
- Navigate to the project directory:
cd KanyeBot - Build the project:
dotnet build
- Run the bot:
dotnet run
- Update the
config.json.examplefile with your own bot token and rename it toconfig.json. Refer to the source code for specifics. - Ensure the Ollama API is running (
ollama serve) before executing commands that generate Kanye tweets.
-
/kanye
Fetches a random Kanye West quote. -
/kanye-tweet
Generates a new Kanye-style tweet using the dolphin-mistral model.
-
!kanye
Same as/kanye. -
!kanye-tweet
Same as/kanye-tweet.
Contributions are welcome! Feel free to fork the repository, make your changes, and submit a pull request.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch-name). - Commit your changes (
git commit -m "Add some feature"). - Push to the branch (
git push origin feature-branch-name). - Open a Pull Request.
This project is licensed under the MIT License.
- Kanye REST API for random Kanye quotes.
- Ollama API for tweet generation.
- The DSharpPlus library for facilitating Discord bot development.