mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Patched the Patch where the Patch patched too much
This commit is contained in:
parent
08c96a6794
commit
06930ebe2c
@ -321,6 +321,9 @@ class Trivia(commands.Cog):
|
|||||||
async def trivia_stop(self, ctx: commands.Context):
|
async def trivia_stop(self, ctx: commands.Context):
|
||||||
"""Stop an ongoing trivia session."""
|
"""Stop an ongoing trivia session."""
|
||||||
session = self._get_trivia_session(ctx.channel)
|
session = self._get_trivia_session(ctx.channel)
|
||||||
|
if session is None:
|
||||||
|
await ctx.send(_("There is no ongoing trivia session in this channel."))
|
||||||
|
return
|
||||||
await session.end_game()
|
await session.end_game()
|
||||||
session.force_stop()
|
session.force_stop()
|
||||||
await ctx.send(_("Trivia stopped."))
|
await ctx.send(_("Trivia stopped."))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user