Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
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
33 changes: 33 additions & 0 deletions cogs/events.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Imports
import discord
from discord import option, ApplicationContext
from discord.ext import commands
from discord.commands import SlashCommandGroup

# Add code for event database here

# Commands
class SpecialEvents(commands.Cog):
def __init__(self, bot):
self.bot = bot

special_event = SlashCommandGroup("event", "Commands related to any ongoing special in-game event.")

@special_event.command(
name="leaderboard",
description="View the global leaderboard for the special in-game event."
)
async def leaderboard(self, ctx: ApplicationContext):
ctx.respond("This event has been concluded! Come back to this command later for new events!", ephemeral=True)

@special_event.command(
name="stats",
description="See your current stats in the special in-game event."
)
@option(name="user", description="Who's event stats do you want to view?", type=discord.User, default=None)
async def stats(self, ctx: ApplicationContext, user: discord.User):
if user == None: user = ctx.author
ctx.respond("This event has been concluded! Come back to this command later for new events!", ephemeral=True)

# Initialization
def setup(bot): bot.add_cog(SpecialEvents(bot))
19 changes: 0 additions & 19 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,25 +430,6 @@ async def profile(ctx: ApplicationContext, user: discord.User = None):
# Maybe I should make a userdat system for collecting statistical data to process and display here, coming in a future update.
await ctx.respond(embed=localembed)

# New Year's in-game Event Commands
special_event = client.create_group("event", "Commands related to any ongoing special in-game event.")

@special_event.command(
name="leaderboard",
description="View the global leaderboard for the special in-game event."
)
async def leaderboard(ctx: ApplicationContext):
ctx.respond("This event has been concluded! Come back to this command later for new events!", ephemeral=True)

@special_event.command(
name="stats",
description="See your current stats in the special in-game event."
)
@option(name="user", description="Who's event stats do you want to view?", type=discord.User, default=None)
async def stats(ctx: ApplicationContext, user: discord.User):
if user == None: user = ctx.author
ctx.respond("This event has been concluded! Come back to this command later for new events!", ephemeral=True)

# Initialization
active_cogs = ["economy", "maths", "moderation", "reddit", "minigames", "automod", "isobank", "levelling", "fun"]
i = 1
Expand Down