Skip to main content

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

Project description

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.7+

  • Twitch IRC 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! API 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. When mods are used, the bot output will always the display the modified AR, OD and BPM, but displaying modified star rating is dependent on Tillerino. If Tillerino is unavailable, or if Tillerino does not have a calculated PP and difficulty for a certain map + mod combination, the nomod star rating will be used.

  • 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

Project details


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.0.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gumiyabot-1.0.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for gumiyabot-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0e7a26ca1d115b6c9a677b05b5248a86988405610cfbd7b35c9d728779374a48
MD5 fdba6c2fed8c1437a406e0ba141e1c6c
BLAKE2b-256 f010114f4f0ca7017a5c9d040b930be7bb6f4bebb3c5ea5da30f47b33d116bd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gumiyabot-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for gumiyabot-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 042339140f2baef17046e7b2ad5e863c02f32b29c1e3bb419ea20efbd2a4453b
MD5 9d7f24fe491d903e100afa98d4955d14
BLAKE2b-256 8cd06d685a3e30250e82a8f1e27bb7505f4690729dc686e2671235b941ebc89f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page