Merge branch 'master' of ZeroHD/MinecraftManagerDjango into master
commit
2de89f988c
10
api/bot.py
10
api/bot.py
|
@ -105,7 +105,17 @@ class Discord(discord.Client):
|
||||||
|
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
app = Application.objects.filter(username__iexact=search).first()
|
||||||
|
|
||||||
|
if app is None:
|
||||||
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)
|
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)
|
||||||
|
elif app.accepted is None:
|
||||||
|
msg = "{0}, your application is still in review, please try again when you have been accepted on the server.".format(message.author.mention)
|
||||||
|
elif not app.accepted:
|
||||||
|
msg = "{0}, your application has been denied. Best of luck finding a new server!".format(message.author.mention)
|
||||||
|
else:
|
||||||
|
msg = "{0}, an error has occurred. Please try again in a few minutes.".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