diff --git a/bot.py b/bot.py index 5e48511..41ca325 100644 --- a/bot.py +++ b/bot.py @@ -124,6 +124,7 @@ async def random_message_command(ctx: commands.Context, channel: Optional[discor messages = async_filter(_is_message_allowed_for_operations, channel.history(limit=max_cnt)) messages = [item async for item in messages] if not messages: + await typing await ctx.channel.send("No valid messages found!") return msg: discord.Message = random.choice(messages)