timeout and econ

Updated the + - points to match server economy
updated text prompts

changed timeout from 120 to 20
pull/190/head
Brad Duncan 4 years ago
parent d0c8d0b791
commit 798d2b3a83

@ -53,7 +53,7 @@ class RecyclingPlant(Cog):
return m.author == ctx.author and m.channel == ctx.channel return m.author == ctx.author and m.channel == ctx.channel
try: try:
answer = await self.bot.wait_for("message", timeout=120, check=check) answer = await self.bot.wait_for("message", timeout=20, check=check)
except asyncio.TimeoutError: except asyncio.TimeoutError:
answer = None answer = None
@ -63,19 +63,19 @@ class RecyclingPlant(Cog):
) )
elif answer.content.lower().strip() == used["action"]: elif answer.content.lower().strip() == used["action"]:
await ctx.send( await ctx.send(
"Congratulations! You put ``{}`` down the correct chute! (**+50**)".format( "Congratulations! You put ``{}`` down the correct chute! (**+500**)".format(
used["object"] used["object"]
) )
) )
reward += 50 reward += 500
x += 1 x += 1
elif answer.content.lower().strip() == opp: elif answer.content.lower().strip() == opp:
await ctx.send( await ctx.send(
"{}, you little brute, you put it down the wrong chute! (**-50**)".format( "{}, you little brute, you put it down the wrong chute! (**-500**)".format(
ctx.author.display_name ctx.author.display_name
) )
) )
reward -= 50 reward -= 500
elif answer.content.lower().strip() == "exit": elif answer.content.lower().strip() == "exit":
await ctx.send( await ctx.send(
"{} has been relived of their duty.".format(ctx.author.display_name) "{} has been relived of their duty.".format(ctx.author.display_name)

Loading…
Cancel
Save