Skip to content

Commit 4d89b74

Browse files
memes: specify direction of rotation; always use first person when kurisu is being rotated
1 parent e4f93e7 commit 4d89b74

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

cogs/memes.py

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,7 @@ async def rotate(self, ctx: KurisuContext, u: discord.Member, degrees: int = Non
780780
MAX_DEGREES = 10000
781781

782782
base_degrees = random.randint(-1080, 1080)
783+
is_kurisu = (u.id == self.bot.user.id) # are we Kurisu?
783784

784785
if degrees is not None:
785786
if abs(degrees) > MAX_DEGREES:
@@ -790,15 +791,24 @@ async def rotate(self, ctx: KurisuContext, u: discord.Member, degrees: int = Non
790791
total_degrees = base_degrees
791792

792793
total_rotations = total_degrees / 360
793-
msg = f"{u.mention} has been rotated {base_degrees} degrees."
794-
794+
795+
if is_kurisu:
796+
msg = f"I have been rotated {base_degrees} degrees."
797+
else:
798+
msg = f"{u.mention} has been rotated {base_degrees} degrees."
799+
795800
if degrees is not None:
796-
if u.id == self.bot.user.id: # are we Kurisu?
797-
msg += f" This means I am now at {total_degrees} degrees, which is {total_rotations:.2f} rotations." # respond with useless level of detail if so
801+
if is_kurisu:
802+
msg += f" This means I am now at {total_degrees} degrees, which is"
798803
else:
799-
msg += f" This means the user is now at {total_degrees} degrees, which is {total_rotations:.2f} rotations." # otherwise normal detail
804+
msg += f" This means the user is now at {total_degrees} degrees, which is"
805+
else:
806+
msg += " That is" # lol
807+
808+
if total_degrees < 0: # directions update
809+
msg += f" {abs(total_rotations):.2f} rotations to the left."
800810
else:
801-
msg += f" That is {total_rotations:.2f} rotations."
811+
msg += f" {total_rotations:.2f} rotations to the right."
802812

803813
await self._meme(ctx, msg, True)
804814

0 commit comments

Comments
 (0)