[Trivia] Send trivia lists in DM only if over 100

Fixes #390
This commit is contained in:
Twentysix 2016-10-09 14:50:57 +02:00
parent dbcd3aedb0
commit 7dc597a272

View File

@ -98,7 +98,10 @@ class Trivia:
else: else:
msg = msg + d + "\t" msg = msg + d + "\t"
msg += "```" msg += "```"
await self.bot.send_message(author, msg) if len(clean_list) > 100:
await self.bot.send_message(author, msg)
else:
await self.bot.say(msg)
else: else:
await self.bot.say("There are no trivia lists available.") await self.bot.say("There are no trivia lists available.")
else: else: