A Discord bot that provides code assistance using Ollama's LLM capabilities. The bot helps users with coding questions and provides intelligent responses using a Large Language Model.
- Code assistance through Discord slash commands
- Integration with Ollama for LLM-powered responses
- Java 21 or higher
- Ollama running locally or accessible via network
- Discord Bot Token
- Clone the repository:
git clone https://github.com/D0gmaDev/discord-bot.git
cd discord-bot- Edit the
config.jsonfile in thesrc/main/resourcesdirectory with the following structure:
{
"discord_token": "your-discord-bot-token",
"ollama_host": "http://localhost:11434",
"llm_model": "gemma3",
"ping_list": [
"https://google.com/"
]
}- Build the project:
./gradlew buildThe bot requires a config.json file with the following parameters:
discord_token: Your Discord bot tokenollama_host: URL of your Ollama instance (default: http://localhost:11434)llm_model: The LLM model to use (default: gemma3)ping_list: The websites to track
- Start the bot:
./gradlew run- Available Commands:
/code: Get help with coding questions