From 452f53c8f212ba6176c429011a4de43ef2cdb287 Mon Sep 17 00:00:00 2001 From: Klemek Date: Thu, 22 Apr 2021 20:14:52 +0200 Subject: [PATCH] assume top if query is singular --- src/scanners/find_scanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scanners/find_scanner.py b/src/scanners/find_scanner.py index f3350de..b1dfd4a 100644 --- a/src/scanners/find_scanner.py +++ b/src/scanners/find_scanner.py @@ -40,7 +40,7 @@ class FindScanner(Scanner): async def init(self, message: discord.Message, *args: str) -> bool: self.matches = defaultdict(Counter) self.all_messages = "all" in args or "everyone" in args - self.top = "top" in args + self.top = "top" in args or len(self.other_args) == 1 if len(self.other_args) == 0: await message.channel.send( "You need to add a query to find (you can use quotes to add spaces in queries)",