Added message for denied apps
parent
94350da9bd
commit
a34b8b7918
|
@ -105,7 +105,13 @@ class Discord(discord.Client):
|
||||||
|
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
msg = "{0}, an application for {1} could not be found, please check your username and make sure you have applied.".format(message.author.mention, search)
|
count = Player.objects.filter(username__iexact=search, application__accepted=False).count()
|
||||||
|
|
||||||
|
if count == 0:
|
||||||
|
msg = "{0}, an application for {1} could not be found, please check your username and make sure you have applied.".format(message.author.mention, search)
|
||||||
|
else:
|
||||||
|
msg = "{0}, your application has been denied. Best of luck finding a new server!".format(message.author.mention)
|
||||||
|
|
||||||
yield from self.discord_message(message.channel, msg)
|
yield from self.discord_message(message.channel, msg)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue