better yes//no's

triggercmd-develop
Bobloy 7 years ago
parent 19de2e2e2d
commit 4d5d277ed1

@ -106,7 +106,7 @@ class CCRole:
return return
# Selfrole # Selfrole
await ctx.send('Is this a targeted command?(yes/no)\nNo will make this a selfrole command') await ctx.send('Is this a targeted command?(yes//no)\nNo will make this a selfrole command')
try: try:
answer = await self.bot.wait_for('message', timeout=120, check=check) answer = await self.bot.wait_for('message', timeout=120, check=check)

@ -58,7 +58,7 @@ class StealEmoji:
async def se_bank(self, ctx): async def se_bank(self, ctx):
"""Add current server as emoji bank""" """Add current server as emoji bank"""
await ctx.send("This will upload custom emojis to this server\n" await ctx.send("This will upload custom emojis to this server\n"
"Are you sure you want to make the current server an emoji bank? (y/n)") "Are you sure you want to make the current server an emoji bank? (y//n)")
def check(m): def check(m):
return m.content.upper() in ["Y", "YES", "N", "NO"] and m.channel == ctx.channel and m.author == ctx.author return m.content.upper() in ["Y", "YES", "N", "NO"] and m.channel == ctx.channel and m.author == ctx.author

Loading…
Cancel
Save