move collage method inside setup

This commit is contained in:
yuki 2025-10-09 01:21:58 -03:00
parent 6b7e38cd0f
commit a889b78efb

View file

@ -8,7 +8,8 @@ import utils as u
# from catbox_async_uploader.catbox_async_uploader.enums import LitterboxDuration
# from pyzxz import ZeroXZero
async def send_collage(bot: bot.Bot, ctx: nerimity.Context, entity: str, size: str = "3x3", timeframe: str = "7day", username: str = None):
def setup(bot: bot.Bot):
async def send_collage(ctx: nerimity.Context, entity: str, size: str = "3x3", timeframe: str = "7day", username: str = None):
temp_msg = None
if 'x' not in size:
@ -77,7 +78,6 @@ async def send_collage(bot: bot.Bot, ctx: nerimity.Context, entity: str, size: s
finally:
if temp_msg: temp_msg.delete()
def setup(bot: bot.Bot):
@bot.command(name="chart", aliases=["c", "chartalbum", "albumchart", "collage"])
@bot.slash_command(name="chartalbum", description="Generate an album collage.")
async def chartalbum(ctx: nerimity.Context, size: str = "3x3", timeframe: str = "7day", username: str = None):