Remove "searching for..." message as results are returned too quickly to matter.
parent
111aa9eaa3
commit
007b4d9319
|
@ -105,7 +105,6 @@ class Discord(discord.Client):
|
||||||
match = re.match("[{0}](?:app )?(?:search|info) (\S+)?$".format(self.prefix), message.content)
|
match = re.match("[{0}](?:app )?(?:search|info) (\S+)?$".format(self.prefix), message.content)
|
||||||
if match:
|
if match:
|
||||||
search = match.group(1)
|
search = match.group(1)
|
||||||
yield from self.discord_message(message.channel, "Searching for applications whose username contains '{0}'".format(search))
|
|
||||||
applications = Application.objects.filter(username__icontains=search)[:10]
|
applications = Application.objects.filter(username__icontains=search)[:10]
|
||||||
count = Application.objects.filter(username__icontains=search).count()
|
count = Application.objects.filter(username__icontains=search).count()
|
||||||
if count > 0:
|
if count > 0:
|
||||||
|
|
Loading…
Reference in New Issue