Patched the Patch where the Patch patched too much

This commit is contained in:
jack1142 2020-04-24 03:33:12 +02:00 committed by GitHub
parent 08c96a6794
commit 06930ebe2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -321,6 +321,9 @@ class Trivia(commands.Cog):
async def trivia_stop(self, ctx: commands.Context):
"""Stop an ongoing trivia session."""
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()
session.force_stop()
await ctx.send(_("Trivia stopped."))