- Python 99.4%
- Dockerfile 0.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| cogs | ||
| .dockerignore | ||
| Dockerfile | ||
| LICENSE | ||
| main.py | ||
| README.md | ||
| requirements.txt | ||
| store.py | ||
| utility.py | ||
boybot2000
Discord bot that shows weather, moons states, upcoming & current guild events, and meows.
Weather functionality based on https://github.com/ethanocurtis/Weather-Bot.
Event scraping functionality from https://lud.ink/ and https://github.com/atomriot.
Setup
Run the Docker container.
Compose example:
services:
boybot2000:
container_name: boybot2000
image: git.kerrishaus.com/kennyrkun/boybot2000:stable
volumes:
- ./data:/app/data
restart: always
environment:
- OLLAMA_MODEL: gemma2:2b
- DISCORD_TOKEN: token
Extra configuration may be required to use the Natural Lanaguage cog.
Cogs
Most of Boybot is made of cog, which can be enabled per server, or removed from the cogs folder entirely.
To enable or disable a cog, use /extensions on|off [name].
Captcha
Sends a user a confirmation message before allowing them to join the server.
Natural Language
Using the NaturalLanguage cog allows the bot to use a model hosted on a local Ollama server to generate replies to messages. The default prompt makes the bot goofy and uwu funny, but the prompt can be overwritten by placing a file in /prompts/NaturalLanguage.txt
If running in Docker, the following extra configuration is required:
services:
...boybot
networks:
- ollama
networks:
ollama:
name: ollama
external: true
alternatively, you can run Ollama in the same stack.
Audit
Tracks edited and deleted messages.
/audit subscribe: subscribes a channel to audit log messages from the entire server the message was sent in. The destination channel need not be in the same server, as long as the boybot instance has access to both.
/audit unsubscribe: removes a channel's subscription.
/audit subscribtions: lists subscriptions for the server.
Events
Sends notifications when events are changed, and a list of upcoming events at a specified interval.
/events subscriptions: Sends a list of subscriptions a user has for events in the current channel to the user that requested it.
/events subscribe [utc time] [cadence]: Subscribes the current channel to event announcements at a specified interval.
/events unsubscribe [subscriptionId]: Cancels a subscription to event announcements.
/events list: Posts a list of current events in the current channel for everyone to see.
Weather
Sends weather updates at a specified interval and alerts when they are issued.
/weather current
/weather hourly
/weather alerts
/weather subscribe
/weather unsubscribe
/weather subscriptions
Moon
Sends the current moon state at a specified interval.
/moon current: Shows the current moon state for everyone to see.
/moon subscribe
/moon unsubscribe
/moon subscriptions
Yappers
Subscribes the guild to yapper announcements. The Yappers cog tracks how many messages each user sends in a particular guild. Messages are not tracked unless the guild has a yapper subscription. When a user surpasses another user's message count, a message is sent in the same channel. The message is deleted after 1 minute.
/yappers subscribe
/yappers unsubscribe: Unsubscribes the guild to yapper announcements.
/yappers leaderboard: Displays top 5 yappers for everyone to see.
Misc
Transcribe: (context menu) can be run on any message which includes a voice message attachment. Will reply with a transcript of the audio.