Skip to content

D0gmaDev/discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord AI Bot

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.

Features

  • Code assistance through Discord slash commands
  • Integration with Ollama for LLM-powered responses

Prerequisites

  • Java 21 or higher
  • Ollama running locally or accessible via network
  • Discord Bot Token

Installation

  1. Clone the repository:
git clone https://github.com/D0gmaDev/discord-bot.git
cd discord-bot
  1. Edit the config.json file in the src/main/resources directory with the following structure:
{
    "discord_token": "your-discord-bot-token",
    "ollama_host": "http://localhost:11434",
   "llm_model": "gemma3",
   "ping_list": [
      "https://google.com/"
   ]
}
  1. Build the project:
./gradlew build

Configuration

The bot requires a config.json file with the following parameters:

  • discord_token: Your Discord bot token
  • ollama_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

Usage

  1. Start the bot:
./gradlew run
  1. Available Commands:
    • /code: Get help with coding questions

Dependencies

About

An AI-powered Discord Bot in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages