Skip to content

Commit

Permalink
foreskin tale
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-psi committed Nov 30, 2024
1 parent 8c0a954 commit 1e3e711
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions cogs/chunithm/tools.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import itertools
from decimal import Decimal
import random
from typing import TYPE_CHECKING, Literal, Optional, Sequence

import discord
Expand Down Expand Up @@ -306,12 +307,15 @@ async def random(self, ctx: Context, level: str, count: Range[int, 1, 4] = 3):
chart.song.id for chart in charts if chart.difficulty == "MAS"
]

if 2035 in master_song_ids:
if XL_TECHNO_JUMPSCARE in master_song_ids:
await ctx.reply(XL_TECHNO_JUMPSCARE, mention_author=False)
return
if 625 in master_song_ids:
if VOLCANIC_SONG_ID in master_song_ids:
await ctx.reply(VOLCANIC_JUMPSCARE, mention_author=False)
return
if FORSAKEN_TALE_SONG_ID in master_song_ids and random.random() < 0.5:
await ctx.reply(FORSAKEN_TALE_JUMPSCARE, mention_author=False)
return

embeds: list[discord.Embed] = [ChartCardEmbed(chart) for chart in charts]
await ctx.reply(embeds=embeds, mention_author=False)
Expand Down Expand Up @@ -458,6 +462,7 @@ async def border(self, ctx: Context, difficulty: str, *, query: str):
return None


XL_TECHNO_SONG_ID = 2035
XL_TECHNO_JUMPSCARE = """恐怖!XL TECHNO -More Dance Remix-
Expand All @@ -478,6 +483,7 @@ async def border(self, ctx: Context, difficulty: str, *, query: str):
""" # noqa: RUF001

VOLCANIC_SONG_ID = 625
VOLCANIC_JUMPSCARE = """🟨🟨🟥🟨🟨
🟨🟨🟥🟨🟨
🟨🟨🟥🟨🟨
Expand All @@ -489,6 +495,15 @@ async def border(self, ctx: Context, difficulty: str, *, query: str):
🟨🟨🟥🟨🟨
""" # noqa: W291, RUF001

FORSAKEN_TALE_SONG_ID = 2652
FORSAKEN_TALE_JUMPSCARE = """恐怖!Forsaken Tale!
😡 😡 😡
😡 😡
😡 😡 😡
😡 😡
😠
""" # noqa: RUF001


async def setup(bot: "ChuniBot"):
await bot.add_cog(ToolsCog(bot))

0 comments on commit 1e3e711

Please sign in to comment.