Merge branch 'survey'
This commit is contained in:
commit
edf7bbed16
@ -29,7 +29,7 @@ class Help(commands.Cog):
|
|||||||
return True if usr != self.bot.user and str(rct.emoji) in self.pages and rct.message.id == msg.id else False
|
return True if usr != self.bot.user and str(rct.emoji) in self.pages and rct.message.id == msg.id else False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
reaction, user = await self.bot.wait_for('reaction_add', timeout=180, check=check)
|
reaction, user = await self.bot.wait_for('reaction_add', timeout=300, check=check)
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
await msg.delete()
|
await msg.delete()
|
||||||
return None
|
return None
|
||||||
@ -43,7 +43,7 @@ class Help(commands.Cog):
|
|||||||
title = f' Pollmaster Help - React with an emoji to learn more about a topic!'
|
title = f' Pollmaster Help - React with an emoji to learn more about a topic!'
|
||||||
embed = discord.Embed(title='', description='', colour=SETTINGS.color)
|
embed = discord.Embed(title='', description='', colour=SETTINGS.color)
|
||||||
embed.set_author(name=title, icon_url=SETTINGS.author_icon)
|
embed.set_author(name=title, icon_url=SETTINGS.author_icon)
|
||||||
embed.set_footer(text='Use reactions to navigate the help. This message will self-destruct in 3 minutes.')
|
embed.set_footer(text='Use reactions to navigate the help. This message will self-destruct in 5 minutes.')
|
||||||
|
|
||||||
if page == '🏠':
|
if page == '🏠':
|
||||||
# POLL CREATION SHORT
|
# POLL CREATION SHORT
|
||||||
|
|||||||
@ -387,6 +387,7 @@ class PollControls(commands.Cog):
|
|||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
cmd = cmd.replace('“', '"') # fix for iphone keyboard
|
||||||
cmds = shlex.split(cmd)
|
cmds = shlex.split(cmd)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
await self.say_error(ctx, error_text=helpstring)
|
await self.say_error(ctx, error_text=helpstring)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user