Skip to content

Commit

Permalink
fix: nowranked embed (#177)
Browse files Browse the repository at this point in the history
* fix: nowranked embed's akat logo

* refeaturing other mirrors

* i have now learned our beatmaps service is very big iq (changed embed to only link to akatsuki stuffs)

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
mistralwz and pre-commit-ci[bot] authored Jul 7, 2024
1 parent b1285f8 commit e458fc7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions constants/chatbotCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1284,8 +1284,7 @@ async def editMap(fro: str, chan: str, message: list[str]) -> str | None:
await pipe.execute()

# Service logos as emojis
icon_akatsuki = "<:akatsuki:1160855094712078368>"
icon_beatconnect = "<:beatconnect:1170497747548381184>"
icon_akatsuki = "<:akatsuki:1253876231645171814>"

# osu! game mode emoji dictionary
mode_to_emoji: Callable[[int], str] = lambda s: {
Expand Down Expand Up @@ -1324,13 +1323,13 @@ async def editMap(fro: str, chan: str, message: list[str]) -> str | None:
author_url=f"{nominator_profile_url}",
author_icon=f"https://a.akatsuki.gg/{token['user_id']}",
title=f'{mode_to_emoji(res["mode"])} {res["song_name"]}',
title_url=f"https://osu.ppy.sh/b/{last_np_map_id}",
desc=f'This {message[1]} has received a status update. 📝\n**Length**: `{generalUtils.secondsToReadable(res["hit_length"])}` **BPM**: `{res["bpm"]}`\n**AR**: `{res["ar"]}` **OD**: `{res["od"]}` **Combo**: `{res["max_combo"]}x`',
title_url=f"https://beatmaps.akatsuki.gg/api/d/{res['beatmapset_id']}",
desc=f'### This {message[1]} has received a status update. 📝\n**Length**: `{generalUtils.secondsToReadable(res["hit_length"])}` **BPM**: `{res["bpm"]}`\n**AR**: `{res["ar"]}` **OD**: `{res["od"]}` **Combo**: `{res["max_combo"]}x`',
fields=[
{"name": k, "value": v}
for k, v in {
"Previous Status": f"<:{prev_status_readable}:{prev_status_emoji_id}>・{prev_status_readable}\n\n**Leaderboard**\n{icon_akatsuki}・[Akatsuki](https://akatsuki.gg/b/{last_np_map_id})",
"Download": f"{icon_akatsuki}・[`Akatsuki`](https://beatmaps.akatsuki.gg/api/d/{res['beatmapset_id']})\n{icon_beatconnect}・[`beatconnect.io`](https://beatconnect.io/b/{res['beatmapset_id']})",
"Leaderboard": f"\n{icon_akatsuki}・[`Akatsuki`](https://akatsuki.gg/s/{res['beatmapset_id']})",
}.items()
],
image=f'https://assets.ppy.sh/beatmaps/{res["beatmapset_id"]}/covers/cover.jpg?1522396856',
Expand Down

0 comments on commit e458fc7

Please sign in to comment.