multi-purpose discord bot: weather, moon, & event announcements + audit logs + p25 radio streaming
  • Python 99.4%
  • Dockerfile 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
kennyrkun f07d079a06
All checks were successful
Create and publish a Docker image / Code analysis and security check (push) Successful in 18s
Create and publish a Docker image / Build and push image to Docker registry (push) Successful in 2m32s
Add .dockerignore
2026-11-26 14:25:05 -06:00
.forgejo/workflows Update .forgejo/workflows/docker-publish.yml 2026-11-09 16:11:37 -06:00
cogs Update cogs/Transcribe.py 2026-11-10 15:03:17 -06:00
.dockerignore Add .dockerignore 2026-11-26 14:25:05 -06:00
Dockerfile hacky upgrade faster-whisper 2026-11-10 12:01:59 -06:00
LICENSE Initial commit 2026-03-12 08:51:27 -05:00
main.py remove initial_extensions from constructor 2026-11-09 13:57:27 -06:00
README.md Update README.md 2026-11-10 15:37:43 -06:00
requirements.txt remove hashes from requirements 2026-11-10 15:49:07 -06:00
store.py Store lint pass 2026-10-30 13:51:00 -05:00
utility.py Utility lint pass 2026-10-30 15:02:50 -05:00

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.