Skip to content

Commit

Permalink
Update raid.py
Browse files Browse the repository at this point in the history
  • Loading branch information
doonce committed Jan 8, 2020
1 parent a1a42b0 commit 91da4a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meowth/exts/raid.py
Original file line number Diff line number Diff line change
Expand Up @@ -3275,6 +3275,7 @@ async def train_manager(self, ctx, *, user):
@train.command(name="nominate")
@checks.trainchannel()
async def train_nominate(self, ctx, *, user=None):
"""Nominate a new train manager"""
if not user:
member = ctx.author
else:
Expand Down Expand Up @@ -3309,7 +3310,7 @@ def check(reaction, user):
try:
timeout = False
reaction, user = await self.bot.wait_for('reaction_add', check=check, timeout=60)
except TypeError:
except asyncio.TimeoutError:
timeout = True
await utils.safe_delete(question)
if timeout or reaction.emoji == no_emoji:
Expand Down Expand Up @@ -3378,6 +3379,7 @@ async def train_route(self, ctx, *, path=''):
@checks.allowtrainreport()
@checks.is_mod()
async def reset_trains(self, ctx, *, channel:discord.TextChannel=None):
"""Reset train channels"""
await self.raid_reset(ctx, channel, type='train')

"""
Expand Down

0 comments on commit 91da4a0

Please sign in to comment.