Skip to content

Commit e7f809a

Browse files
authored
Merge branch 'main' into release-IsoBank-beta
2 parents b967d60 + 934fc58 commit e7f809a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

main.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ async def monthly(ctx:SlashContext):
345345
)
346346
@commands.cooldown(1, 15, commands.BucketType.user)
347347
async def beg(ctx:SlashContext):
348-
if plugins.economy == False: pass #not fixing this one cuz there are a lot of lines so tabs will be more bytes than " == False: pass"
348+
if not plugins.economy: return
349349
names = [
350350
"A random person",
351351
"Your friend",
@@ -387,7 +387,7 @@ async def beg(ctx:SlashContext):
387387
)
388388
@commands.cooldown(1, 30, commands.BucketType.user)
389389
async def scout(ctx:SlashContext):
390-
if plugins.economy == False: pass
390+
if not plugins.economy: return
391391
chance = random.randint(1, 100)
392392
if (random.randint(1, 100) <= 90):
393393
x = random.randint(550, 2000)
@@ -410,7 +410,7 @@ async def scout(ctx:SlashContext):
410410
]
411411
)
412412
async def give(ctx:SlashContext, user:discord.User, amount:int):
413-
if plugins.economy == False: pass
413+
if not plugins.economy: return
414414
if amount <= 0: return await ctx.send('The amount you want to give must be greater than `0` coins!', hidden=True)
415415
if amount > int(currency['wallet'][str(ctx.author.id)]): return await ctx.send('You don\'t have enough coins in your wallet to do this.', hidden=True)
416416
else:
@@ -428,7 +428,7 @@ async def give(ctx:SlashContext, user:discord.User, amount:int):
428428
)
429429
@commands.cooldown(1, 60, commands.BucketType.user)
430430
async def rob(ctx:SlashContext, user:discord.User):
431-
if plugins.economy == False: pass
431+
if not plugins.economy: return
432432
if currency['wallet'][str(user.id)] < 5000: return await ctx.reply('They has less than 5000 coins on them. Don\'t waste your time...')
433433
elif currency['wallet'][str(ctx.author.id)] < 5000: return await ctx.reply('You have less than 5k coins in your wallet. Play fair dude.') #what..? wheres logic?? i mean irl you can rob someone without havin any money at all
434434
if random.randint(1, 100) <= 50:
@@ -452,7 +452,7 @@ async def rob(ctx:SlashContext, user:discord.User):
452452
)
453453
@commands.cooldown(1, (60*5), commands.BucketType.user)
454454
async def bankrob(ctx:SlashContext, user:discord.User):
455-
if plugins.economy == False: pass
455+
if not plugins.economy: return
456456
if currency['wallet'][str(user.id)] < 10000: return await ctx.reply('You really want to risk losing your life to a poor person? (imagine robbing someone with < 10k net worth)')
457457
elif currency['wallet'][str(ctx.author.id)] < 10000: return await ctx.reply('You have less than 10k in your wallet. Don\'t be greedy.')
458458
if random.randint(1, 100) <= 20:
@@ -473,7 +473,7 @@ async def bankrob(ctx:SlashContext, user:discord.User):
473473
]
474474
)
475475
async def inventory(ctx:SlashContext, user:discord.User = None):
476-
if plugins.economy == False: pass
476+
if not plugins.economy: return
477477
if user == None: user = ctx.author
478478
localembed = discord.Embed(title=f'{user.display_name}\'s Inventory')
479479
localembed.add_field(name='Utility', value=f'Hunting Rifle `ID: rifle`: {items[str(user.id)]["rifle"]}\nFishing Rod `ID: fishingpole`: {items[str(user.id)]["fishingpole"]}\nShovel `ID: shovel`: {items[str(user.id)]["shovel"]}', inline=False)
@@ -489,7 +489,7 @@ async def inventory(ctx:SlashContext, user:discord.User = None):
489489
]
490490
)
491491
async def shop(ctx:SlashContext, item:str=None):
492-
if plugins.economy == False: pass
492+
if not plugins.economy: return
493493
if item == None:
494494
localembed = discord.Embed(
495495
title='The Shop!',
@@ -519,7 +519,7 @@ async def shop(ctx:SlashContext, item:str=None):
519519
]
520520
)
521521
async def buy(ctx:SlashContext, name:str, quantity:int=1):
522-
if plugins.economy == False: pass
522+
if not plugins.economy: return
523523
try:
524524
amt = shopitem[name]['buy price'] * quantity
525525
if (currency['wallet'][str(ctx.author.id)] < amt): return await ctx.reply('You don\'t have enough balance to buy this.')
@@ -559,7 +559,7 @@ async def sell(ctx:SlashContext, name:str, quantity:int=1):
559559
)
560560
@commands.cooldown(1, 30, commands.BucketType.user)
561561
async def hunt(ctx:SlashContext):
562-
if plugins.economy == False: pass
562+
if not plugins.economy: return
563563
if items[str(ctx.author.id)]['rifle'] == 0: return await ctx.reply('I\'d hate to see you hunt with your bare hands. Please buy a hunting rifle from the shop. ||/buy rifle||')
564564
loot = ['rock', 'ant', 'skunk', 'boar', 'deer', 'dragon', 'nothing', 'died']
565565
choice = random.choice(loot)
@@ -579,7 +579,7 @@ async def hunt(ctx:SlashContext):
579579
)
580580
@commands.cooldown(1, 45, commands.BucketType.user)
581581
async def fish(ctx:SlashContext):
582-
if plugins.economy == False: pass
582+
if not plugins.economy: return
583583
if (items[str(ctx.author.id)]['fishingpole'] == 0): return await ctx.reply('I don\'t think you can fish with your bare hands. Please buy a fishing pole from the shop. ||/buy fishingpole||') #just put yo hands in the water bro **giga chad**
584584
loot = ['shrimp', 'fish', 'rare fish', 'exotic fish', 'jellyfish', 'shark', 'nothing']
585585
choice = random.choice(loot)
@@ -595,7 +595,7 @@ async def fish(ctx:SlashContext):
595595
)
596596
@commands.cooldown(1, 45, commands.BucketType.user)
597597
async def dig(ctx:SlashContext):
598-
if plugins.economy == False: pass
598+
if not plugins.economy: return
599599
if (items[str(ctx.author.id)]['shovel'] == 0): return await ctx.reply('You\'re too good to have to dig with your bare hands..... at least I hope so. Please buy a shovel from the shop. ||/buy shovel||')
600600
loot = [
601601
'coins',

0 commit comments

Comments
 (0)