Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,23 @@ async def afk_mod_remove(ctx:SlashContext, user:discord.User):
except KeyError:
return await ctx.send("That user isn't AFK.", hidden=True)

@slash.slash(
name="autogrind",
description="Automatically grinds coins and items for you"
)
async def autogrind(ctx:SlashContext):
await ctx.reply("Autogrind has started. Please check back in an hour for your rewards.")
await asyncio.sleep(3600)
coins_reward = random.randint(10000, 35000)
items_reward = [random.choice(shopitem.keys()), random.choice(shopitem.keys()), random.choice(shopitem.keys())]
currency["wallet"][str(ctx.author.id)] += coins_reward
items[str(ctx.author.id)][items_reward[0]] += 1
items[str(ctx.author.id)][items_reward[1]] += 1
items[str(ctx.author.id)][items_reward[2]] += 1
save()
localembed = discord.Embed(title="Autogrind has completed!", description=f"**Your rewards**\n\nYou got **{coins_reward}** coins!\nYou got **1 {items_reward[0]}**!\nYou got **1 {items_reward[1]}**!\nYou got **1 {items_reward[2]}!**", color=discord.Color.greem())
ctx.author.send()

@slash.slash(
name="rank",
description="Shows your rank or another user's rank",
Expand Down