Skip to main content

Standalone Twitch + Bancho IRC bot for handling osu! beatmap requests.

https://github.com/pmrowla/gumiyabot/actions/workflows/build.yml/badge.svg?branch=master

This package is used in Gumiya and is provided for users that wish to run their own bot instance and customize the bot’s functionality. If you only want a beatmap request bot, but do not need to modify or customize it, you may wish to just use stock Gumiya instead.

License:

MIT

Features

  • Support for linking a single twitch channel and single osu! account

  • Beatmap requests

  • PP info for beatmap requests (requires a Tillerino API key)

Requirements

  • Python 3.11+

  • Twitch IRC OAuth token - note that if you are using the token for your own Twitch account, the bot will connect to Twitch chat using your own account. It is recommended to register a secondary Twitch account for the bot.

  • Bancho (osu!) IRC credentials - note that multiaccounting in osu! is forbidden, and a bannable offense. This includes registering a bot-specific osu! account without explicit permission from osu! staff. Therefore, it is recommended to run the bot under your own osu! account. This will not affect any functionality, you will just receive map requests as in game PMs from yourself.

  • osu! OAuth Client key

Installation

Via pip

pip install gumiyabot

Alternatively, you can clone the source repository and run the bot module directly

pip install -r requirements.txt
python -m gumiyabot

Running the bot

  1. Generate a new config.ini

    gumiyabot --new-config
  2. Edit config.ini as needed (see configuration section below)

  3. Run the bot

    gumiyabot config.ini

Configuration

See config.ini.example for details on configuration options.

Twitch usage

  • Map requests can be linked in the format <beatmap or mapset URL> +HDDT. The bot accepts beatmap and mapset URLs from both the old and new osu! web sites. PP information is dependent on Tillerino.

  • Player stats can be queried with !stats <player name>

Developing

If you need to extend either of the base plugin classes, there are some things to note beforehand:

  • Your subclass must have an __init__ method. If you do not need to add any custom functionality, it should just call super(MyPluginClass, self).__init__().

  • Any irc3.event or irc3.command decorated method from the base plugin class must be overridden in your subclass. If you want the base plugin’s event or command handling, just call super() from your subclass.

  • For examples, see the Gumiya IRC plugins

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gumiyabot-1.1.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gumiyabot-1.1.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file gumiyabot-1.1.1.tar.gz.

File metadata

  • Download URL: gumiyabot-1.1.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.26.3 CPython/3.14.2 Linux/6.11.0-1018-azure

File hashes

Hashes for gumiyabot-1.1.1.tar.gz
Algorithm Hash digest
SHA256 e41aa1b0f2f99805f98060b84d880b0cde07a3a8230ee29890685eed71e1d10e
MD5 21361f1e0dc77a359bb67c75a391bc0d
BLAKE2b-256 fcd3293c23352cc73362d9b9926c1bb64a05fe92ad7ffa6d4095fb2dd6c40194

See more details on using hashes here.

File details

Details for the file gumiyabot-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: gumiyabot-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.26.3 CPython/3.14.2 Linux/6.11.0-1018-azure

File hashes

Hashes for gumiyabot-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 233066946a3baef55af15aef5dd6399783f51885e2631e37f90c1bb6a3593c59
MD5 a9298749717ba496297f095ac82df329
BLAKE2b-256 34a7e2b8379b0093fc24af9f38db610f41f595ee1ffb42fddacd8f7cac3486cf

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.3

2 files

1.1.2

2 files

This release

1.1.1 This release

2 files

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page