move collage method inside setup
This commit is contained in:
parent
6b7e38cd0f
commit
a889b78efb
1 changed files with 54 additions and 54 deletions
|
|
@ -8,7 +8,8 @@ import utils as u
|
||||||
# from catbox_async_uploader.catbox_async_uploader.enums import LitterboxDuration
|
# from catbox_async_uploader.catbox_async_uploader.enums import LitterboxDuration
|
||||||
# from pyzxz import ZeroXZero
|
# 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
|
temp_msg = None
|
||||||
|
|
||||||
if 'x' not in size:
|
if 'x' not in size:
|
||||||
|
|
@ -77,7 +78,6 @@ async def send_collage(bot: bot.Bot, ctx: nerimity.Context, entity: str, size: s
|
||||||
finally:
|
finally:
|
||||||
if temp_msg: temp_msg.delete()
|
if temp_msg: temp_msg.delete()
|
||||||
|
|
||||||
def setup(bot: bot.Bot):
|
|
||||||
@bot.command(name="chart", aliases=["c", "chartalbum", "albumchart", "collage"])
|
@bot.command(name="chart", aliases=["c", "chartalbum", "albumchart", "collage"])
|
||||||
@bot.slash_command(name="chartalbum", description="Generate an album 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):
|
async def chartalbum(ctx: nerimity.Context, size: str = "3x3", timeframe: str = "7day", username: str = None):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue