Skip to content

GeorgiosDV/Evil-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Evil Bot

A dark and mysterious Discord chatbot tasked with spreading mischief powered by Ollama.

Prerequisites

  • SQLite3
  • Python 3.8 or higher

Setup

  1. Install Ollama:
curl https://ollama.ai/install.sh | sh  # On Linux/Mac
  1. Pull the default model:
ollama pull dolphin-mixtral:8x7b
  1. Create and activate virtual environment:
python3 -m venv venv
source venv/bin/activate  # On Linux/Mac
# or
.\venv\Scripts\activate  # On Windows
  1. Install Python dependencies:
pip install -r requirements.txt
  1. Create a .env file in the project's root directory.

    • The BOT_TOKEN must be specified.
  2. Run the bot:

python3 main.py

Environment Variables

Variable Description Default
BOT_TOKEN Your bot token (Required) None
BOT_NAME Name of the bot "Evil Bot"
COMMAND_PREFIX Command prefix "!"
MODEL_NAME Ollama model "dolphin-mixtral:8x7b"
MAX_MESSAGE_LENGTH Max Discord message length 2000
EMBED_COLOR Discord embeds color "0x800000"
RESPONSE_TIMEOUT Responses Timeout 300
MAX_CONTEXT_MESSAGES Max number of messages in context window 5
DEFAULT_TRIGGER_WORDS Comma-separated list of trigger words "evil,evil bot,good,good bot"
DEFAULT_RANDOM_ENABLED Default random responses boolean "True"
DEFAULT_RANDOM_CHANCE Default random responses percentage 10
DEFAULT_PERSONA Default system prompt See config.py
DATABASE_NAME SQLite database file "bot_settings.db"
LOG_FILE_NAME Log file "bot.log"
LOG_MAX_SIZE Maximum size of log files in bytes 50 MB
LOG_BACKUP_COUNT Number of backup log files to keep 4

Commands

  • !set - Set the bot's personality/system prompt
  • !get - Show current personality settings
  • !default - Reset all settings to default
  • !trigger - Manage trigger words
  • !random - Control random response settings
  • !help - Show all available commands

About

A dark and mysterious Discord Chatbot Powered by Ollama that is tasked with spreading mischief.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages