Add flip pipelin command
This commit is contained in:
5
bot.py
5
bot.py
@@ -237,6 +237,11 @@ async def collect_messages_command(ctx: commands.Context, channel: Optional[disc
|
|||||||
await ctx.channel.send(embed=embed)
|
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:
|
def _is_message_valid_for_selection(message: discord.Message, reaction_filter: Optional[str] = None) -> bool:
|
||||||
if message.clean_content.strip() == '':
|
if message.clean_content.strip() == '':
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user