Add flip pipelin command

This commit is contained in:
2021-01-27 15:07:23 +01:00
parent 64e88aa094
commit 84b0362b9f

5
bot.py
View File

@@ -237,6 +237,11 @@ async def collect_messages_command(ctx: commands.Context, channel: Optional[disc
await ctx.channel.send(embed=embed)
@bot.command(name='flip_pipelin', brief='Flip a pipelin')
async def flip_pipelin_command(ctx: commands.Context):
await ctx.channel.send("Pipelin " + random.choice(['schnel', 'langsam']))
def _is_message_valid_for_selection(message: discord.Message, reaction_filter: Optional[str] = None) -> bool:
if message.clean_content.strip() == '':
return False