Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
paixlukee committed Feb 19, 2025
1 parent 23c13bc commit 5df6e8a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions cogs/shop.py
Original file line number Diff line number Diff line change
Expand Up @@ -2352,7 +2352,6 @@ async def add_money(self, user:int, count, check_tasks=False):
if "earn_money" in data['tasks']:
ix = data['tasks'].index("earn_money")
if data['task_list'][ix]['completed']+count >= data['task_list'][ix]['total']:
await ctx.author.send(f"You have completed the **{data['task_list'][ix]['description']}** task. You have been awarded {bbux}**{data['task_list'][ix]['rewards']}**.")
await db.market.update_one({"owner": user}, {"$inc":{"money": data['task_list'][ix]['rewards']}})
await db.market.update_one({"owner": user}, {"$pull":{"tasks": "earn_money"}})
await db.market.update_one({"owner": user, "task_list.name": "earn_money"},{"$inc": {"task_list.$.completed": count}})
Expand Down Expand Up @@ -2382,7 +2381,6 @@ async def add_exp(self, user, count, check_tasks=False):
if "earn_exp" in data['tasks']:
ix = data['tasks'].index("earn_exp")
if data['task_list'] and data['task_list'][ix]['completed']+count >= data['task_list'][ix]['total']:
await ctx.author.send(f"You have completed the **{data['task_list'][ix]['description']}** task. You have been awarded {bbux}**{data['task_list'][ix]['rewards']}**.")
await db.market.update_one({"owner": user}, {"$inc":{"money": data['task_list'][ix]['rewards']}})
await db.market.update_one({"owner": user}, {"$pull":{"tasks": "earn_exp"}})
await db.market.update_one({"owner": user, "task_list.name": "earn_exp"},{"$inc": {"task_list.$.completed": count}})
Expand Down
2 changes: 0 additions & 2 deletions cogs/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,6 @@ async def add_money(self, user:int, count, check_tasks=False):
if "earn_money" in data['tasks']:
ix = data['tasks'].index("earn_money")
if data['task_list'][ix]['completed']+count >= data['task_list'][ix]['total']:
await ctx.author.send(f"You have completed the **{data['task_list'][ix]['description']}** task. You have been awarded {bbux}**{data['task_list'][ix]['rewards']}**.")
await db.market.update_one({"owner": user}, {"$inc":{"money": data['task_list'][ix]['rewards']}})
await db.market.update_one({"owner": user}, {"$pull":{"tasks": "earn_money"}})
await db.market.update_one({"owner": user, "task_list.name": "earn_money"},{"$inc": {"task_list.$.completed": count}})
Expand Down Expand Up @@ -1379,7 +1378,6 @@ async def add_exp(self, user, count, multiplier=True, check_tasks=False):
if "earn_exp" in data['tasks']:
ix = data['tasks'].index("earn_exp")
if data['task_list'][ix]['completed']+count >= data['task_list'][ix]['total']:
await ctx.author.send(f"You have completed the **{data['task_list'][ix]['description']}** task. You have been awarded {bbux}**{data['task_list'][ix]['rewards']}**.")
await db.market.update_one({"owner": user}, {"$inc":{"money": data['task_list'][ix]['rewards']}})
await db.market.update_one({"owner": user}, {"$pull":{"tasks": "earn_exp"}})
await db.market.update_one({"owner": user, "task_list.name": "earn_exp"},{"$inc": {"task_list.$.completed": count}})
Expand Down

0 comments on commit 5df6e8a

Please sign in to comment.