Skip to content

About

Discord bot for FAQ questions

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

Omi Discord Bot

How to Run

 # package manager
 uv 

Installation

  • Clone the repository

  • Create a virtual environment:

    uv venv .venv
  • Activate the virtual environment:

    source env/bin/activate
  • Install dependencies:

    uv sync

Configuration

Create a .env file in the project root and add your bot token:

TOKEN=your_bot_token

// DEFAULT IS OPENAI 
OPENAI_API_KEY=<token>
GEMINI_API_KEY=<token>

Running the Bot

# Run the bot
python main.py

# Run with auto-restart on file changes
watchmedo auto-restart --recursive --pattern="*.py" -- python main.py

Indexing the Knowledge Base

In your Discord server, run:

$index

Commands

  • $index — Indexes the faq.json file
  • $reload_index — Reloads the BM25 index
  • $sync — Syncs slash commands

About

Discord bot for FAQ questions

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages