Fix things

master
archfan 2019-04-15 12:29:21 -04:00 committed by GitHub
parent 5b574482bc
commit 03bcb22739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ async def _class(ctx, number):
if player._can_change_class:
if number.isdigit() and int(number) < len(rpg_utils.classes) and int(number) >= 1:
if number.isdigit() and int(number) =< len(rpg_utils.classes) and int(number) >= 1:
player._can_change_class = False
@ -33,7 +33,7 @@ async def _class(ctx, number):
await ctx.send("Successfully set your class to **" + player._class + ".**")
else:
await ctx.send("Invalid arguments! Try providing a number, 1-"+str(len(rpg_utils.classes))+".")
await ctx.send("Invalid arguments! Try providing a number from 1-"+str(len(rpg_utils.classes))+".")
else:
await ctx.send("You can't change your class right now.\nCurrent class: " + player._class)