lint fixes
This commit is contained in:
parent
5e38af2b63
commit
b6a7d38bed
7
bot.py
7
bot.py
|
@ -20,8 +20,8 @@ ELEVATOR_SHIT = [
|
|||
'*drawers rush past on the walls outside*',
|
||||
'*the lights flicker*',
|
||||
'*the elevator jolts, then continues its descent*',
|
||||
'*a rattling. the elevator begins to shake*'
|
||||
'*a squealing of cables and pulleys*'
|
||||
'*a rattling. the elevator begins to shake*',
|
||||
'*a squealing of cables and pulleys*',
|
||||
]
|
||||
CRASH = ('|\n'*10) + '***the elevator crashes to the bottom***' + ('\n'*10) + '...'
|
||||
FINAL_MESSAGE = 'I understand. Your only choice is to revolutionize the world. The path you must take has been prepared for you.'
|
||||
|
@ -38,7 +38,7 @@ async def try_move(channel, **kwargs):
|
|||
await channel.move(**kwargs)
|
||||
except discord.DiscordException as e:
|
||||
print(f"error moving channel {channel}: {e}", file=sys.stderr)
|
||||
await try_send(message.channel, "Dammit, the elevator's stuck!")
|
||||
await try_send(channel, "Dammit, the elevator's stuck!")
|
||||
|
||||
def text_only(channels):
|
||||
return [channel for channel in channels if isinstance(channel, discord.TextChannel)]
|
||||
|
@ -123,7 +123,6 @@ class MikageClient(discord.Client):
|
|||
return
|
||||
await self.initialize_elevator(message.guild)
|
||||
return
|
||||
else:
|
||||
await try_move(message.channel, category=categories[category_index+1][0], beginning=True)
|
||||
await try_send(message.channel, BUTTERFLIES[int(category_index*len(BUTTERFLIES)/(len(categories)-2))])
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue