assume top if query is singular

This commit is contained in:
Klemek
2021-04-22 20:14:52 +02:00
parent 8e5bab22e7
commit 452f53c8f2
+1 -1
View File
@@ -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)",