1
0
Fork 0
mirror of synced 2024-05-24 14:29:39 +12:00

Increase limit to 30 characters

This commit is contained in:
phxntxm 2017-12-02 16:19:54 -06:00
parent 85e34b32ca
commit 4065f63e70

View file

@ -146,7 +146,7 @@ class Hangman:
try:
msg = await ctx.message.author.send(
"Please respond with a phrase you would like to use for your hangman game in **{}**\n\nPlease keep "
"phrases less than 20 characters".format(
"phrases less than 31 characters".format(
ctx.message.guild.name))
except discord.Forbidden:
await ctx.send(
@ -158,7 +158,7 @@ class Hangman:
ctx.message.author.display_name))
def check(m):
return m.channel == msg.channel and len(m.content) < 20
return m.channel == msg.channel and len(m.content) <= 30
try:
msg = await self.bot.wait_for('message', check=check, timeout=60)