Skip to content

Bot code for creating your own bot for Osu! and Osu!Droid. Please read the disclaimer and readme first. All data are based on the top 50 plays.

License

Notifications You must be signed in to change notification settings

Larizzkk/AltPippiBot

Repository files navigation

Please read the disclaimer first

DISCLAIMER

or

DISCLAIMER

THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.

IN NO EVENT SHALL THE AUTHORS, COPYRIGHT HOLDERS, OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

THE AUTHOR DOES NOT TAKE RESPONSIBILITY FOR ANY ACTIONS PERFORMED BY THIRD PARTIES USING THIS SOFTWARE, INCLUDING BUT NOT LIMITED TO ILLEGAL, UNETHICAL, OR UNINTENDED USE CASES.

THE USER IS SOLELY RESPONSIBLE FOR ENSURING COMPLIANCE WITH ALL APPLICABLE LAWS, REGULATIONS, AND POLICIES WHEN USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE.

This bot does not use this code and has its own unique code that does not use osu cookies (to protect your account, I recommend using mirrors)

AltPippiBot

Telegram bot for osu!droid and osu! — generate profile cards, calculate PP/DPP, show top plays, beatmap info, replay analysis, and visual graphs. Invite AltPippiBot to your chat to fetch player stats, compare users, and create shareable profile images and charts.

Bot link: https://t.me/AltPippiBot (t.me/@AltPippiBot)

You can follow bot updates directly in Telegram (https://t.me/larizkaosudroid/541)

Requirements

  • Python 3.11+
  • Install dependencies:
pip install -r requirements.txt

Configuration

Copy the example env and fill values locally (do NOT commit .env):

cp .env.example .env
# then edit .env

Required environment variables (examples are in .env.example):

  • BOT_TOKEN — Telegram bot token
  • API_BASE — backend API base URL used by the bot
  • API_ID, API_HASH — Telegram API credentials
  • OSU_API_KEY, OSU_CLIENT_ID, OSU_CLIENT_SECRET — osu! API credentials
  • DROID_TOKEN — optional (leaderboard API)

Run locally

Start the bot with:

python bot.py

Use screen/tmux or a process manager (systemd, pm2, supervisor) for production deployments.

Commands

For a full list of commands and usage examples, see COMMANDS.md.

Quick examples:

  • /bind Lift — link your osu!droid account
  • /map <url> — get beatmap info
  • /pp #osu/<id> — calculate PP
  • /topplays — view your top plays
  • /prpic Lift — generate profile card
  • /ppgraph Lift — plot PP history
  • /compare Lift Cookiezi — compare players

Tests

Run the test-suite locally:

pytest -q

Security

  • Do not commit .env or any secret files. Use GitHub Secrets for CI and environment variables on hosting services.
  • After removing secrets from history, rotate keys immediately.
  • Make the repository private if you don't want public visibility.

Be sure to create a folder called downloads

Contributing

PRs are welcome. Please add tests for new features and keep changes small and focused.

License

This project is dual-licensed under:

  • MIT (see LICENSE)
  • Apache License 2.0 (optional alternative)

You may use, modify, and distribute this software under the terms of either license.

All questions or support to here DEV CHANNEL

About

Bot code for creating your own bot for Osu! and Osu!Droid. Please read the disclaimer and readme first. All data are based on the top 50 plays.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages