Skip to content

CodeF53/sage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sage Bot

A multifunction discord bot

Functionality

All features can be enabled and disabled with /config
Config set command

Music and TTS
Music player embed

Image Generation
Image Generation Embed

AI Chatbot
asking for some typescript code

Set-up instructions

  1. Install Bun and install dependencies with bun i
  2. Create a Discord bot
    • enable Message Content Intent and Server Members Intent in Application > Bot
  3. Create /configs/botName.private.env
    TOKEN=...
    APP_ID=...
  4. Invite the bot to a server with:
  • https://discord.com/oauth2/authorize?permissions=68608&scope=bot&client_id=+YOUR APP_ID
  1. TEMPORARY install NodeJS and run bun start-node
  2. start with bun startalt text

All configs can be found in either:

  • .env (Global Config)
  • ./configs/*.env (Per-Bot config)
  • ./configs/*.private.env (Bot Credential config)

You can run more than one bot at once by creating more in ./configs/

Features are toggled per-server with /config

LLM setup

  1. Install Ollama
  2. Download an model ex: ollama pull dolphin-mistral
  3. Start Ollama by running ollama serve

Image Generation setup

  1. setup This WebUI
  2. add --api --nowebui to COMMANDLINE_ARGS in webui-user.sh
  3. run it in the background whenever you run the bot

Voice Channel Stuff

  1. Install FFMPEG

About

multifunction discord chatbot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.5%
  • JavaScript 0.5%