Skip to content

BasedHardware/omi-faq-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Omi Discord Bot

How to Run

 # package manager
 uv 

Installation

  • Clone the repository

  • Create a virtual environment:

    uv venv env
  • Activate the virtual environment:

    source env/bin/activate
  • Install dependencies:

    uv pip install -r requirements.txt

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages