Skip to content

/r/osugame's benevolent robot overlord | due for another rewrite

License

Notifications You must be signed in to change notification settings

christopher-dG/osu-bot

Repository files navigation

osu!bot

osu!bot is a Reddit bot that posts beatmap and player information to /r/osugame score posts.

This is its third iteration, which replaces the original spaghetti-tier Ruby implementation and the "Wow I love multiple dispatch so let's write a combinatorial explosion of methods with excessively fine-grained signatures" Julia implementation. They can be found in separate branches as historical artifacts.

Also, the code is absolutely awful for all iterations.

Formatting Score Posts

The bot depends on you to properly format your title! The beginning of your post title should look something like this:

Player Name | Song Artist - Song Title [Diff Name] +Mods

For example:

Cookiezi | xi - FREEDOM DiVE [FOUR DIMENSIONS] +HDHR 99.83% FC 800pp *NEW PP RECORD*

In general, anything following the official criteria should work.

There's one notable exception which doesn't work, which is mods separated by spaces: "HD HR" and "HD, HR" both get parsed as HD only. Additionally, prefixing the mods with "+" makes parsing much more consistent, for example "+HDHR".

Contact

Send any problems, questions, or suggestions to the Reddit users mentioned as developers in the bot's comments.

Acknowledgements

Thanks to Franc[e]sco and khazhyk for oppai and osuapi respectively, both of which have saved me much time and effort.