Skip to content

a simple script for connecting an ollama server to a discord bot

Notifications You must be signed in to change notification settings

gdadam/simple-ollama-discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-ollama-discord-bot

Run bot.py to start it, put in your bot's token, make sure it has message content intent permission enabled It replies to all messages it sees. I'll be changing this in future versions.

I've got two options for shell scripts that interact with ollama here. They're shell scripts because I initially wrote them just for personal use through the command line, but figured they'd be easily useful here too one-off.sh just gives the prompt and returns an answer - no memory of chat history chat-stream.sh saves in a text file (messages.txt) the prompts and responses, so it has chat history. This will get weird if the bot has access to multiple channels. Again, I will be changing this in the future.

About

a simple script for connecting an ollama server to a discord bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published