Sign inSign up

daskaesebrot/bonkbot

By daskaesebrot

Updated 4 days ago

discord bot for bonking users

Image
0

8.1K

daskaesebrot/bonkbot repository overview

bonkbot

This is a meme bot for bonking users in discord.

Horny jail meme

What it does

The bot allows you to bonk users behaving horny in chat. If someone has been bonked more than 10 times, they get sent to horny jail (-> a role is assigned) for a specified time, by default 600 seconds. For ways to customize all these values, please see !bonkhelp or the usage section.

Invite to your server

Feel free to invite the bot using this invite link.

In the beginning, everyone is allowed to send admin commands. Be sure to set the admin role with the command !bonkadmin [role mention] as soon as possible!

Usage

Unprivileged user commands
CommandDescription
!bonk as a reply to a messageBonk the author of the original message (! can be ommitted)
!bonk [name | tagged user]Bonk a user (! can be ommitted)
!bonksGet the top 5 most bonked users
!bonks [name | tagged user]Get the bonks of a user
!bonkprefixGet the prefix for this bot's commands
!bonkhelpShow help message
Admin commands
CommandDescription
!bonkpardon [name | tagged user]Pardon a user from horny jail
!hornyjail as a reply to a messageSend the author of the original message to horny jail immediately
!hornyjail [name | tagged user]Send a user to horny jail immediately
!bonkadminGet the role that is assigned as admin role
!bonkadmin [role mention]Set the admin role
!bonkjailGet the role that is assigned as horny jail
!bonkjail [role mention]Set the horny jail role
!bonkjailtimeGet the horny jail time (in seconds)
!bonkjailtime [jail seconds]Set the horny jail time (in seconds)
!bonkjailamountGet the bonks needed to send a user to horny jail
!bonkjailamount [jail bonks]Set the bonks needed to send a user to horny jail
!bonkprefix [prefix]Set the prefix for this bot's commands
!bonkprefix resetReset the prefix back to !

Configuration

You may configure the bot via multiple sources. Environment variables take precedence over the config file.

Environment variables
Variable nameDescriptionDefault valueRequired?
BONKBOT_TOKENBot token to use for login at the discord APINoneYes
BONKBOT_LOG_LEVELLogging levelinfoNo
BONKBOT_DB_CONNECTION_STRINGThe connection string for the database engine to usesqlite://No
BONKBOT_CLEAN_UP_STALE_GUILDSWhether to delete cached guilds (servers) from the database that the bot is no longer part offalseNo
Config file

The file has to be called config.json and has to be mounted next to the script at /usr/local/bin/bonkbot/config.json.

{
    "log_level": "info",
    "db_connection_string": "sqlite:///data.db",
    "clean_up_stale_guilds": false,
    "guild_config": {
        "YOUR_GUILD_ID": {
            "admin_role": 13774555512916872331,
            "horny_jail_role": 1377464510916872449,
            "horny_jail_bonks": 10,
            "horny_jail_seconds": 600,
            "force_override": true
        }
    }
}

Open Source License Attribution

This application uses Open Source components. You can find the source code of their open source projects along with license information below. We acknowledge and are grateful to these developers for their contributions to open source.

discord.py
SQLAlchemy
pydantic-settings
Flake8
pytest

Tag summary

Content type

Image

Digest

sha256:6c99e2882

Size

57.2 MB

Last updated

4 days ago

docker pull daskaesebrot/bonkbot