From 9af4331515f8ce0cce1209e238da04984ef4b7a1 Mon Sep 17 00:00:00 2001 From: DigiDuncan Date: Tue, 5 Dec 2023 16:36:51 -0500 Subject: [PATCH] new command: &scaled --- sizebot/cogs/objects.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sizebot/cogs/objects.py b/sizebot/cogs/objects.py index 049a1055..629f596f 100644 --- a/sizebot/cogs/objects.py +++ b/sizebot/cogs/objects.py @@ -423,6 +423,13 @@ async def tags(self, ctx): await ctx.send(out) + @commands.command( + usage = "[object] ", + category = "objects" + ) + async def scaled(self, ctx, obj: DigiObject): + userdata = load_or_fake(ctx.author) + await ctx.send(f"{obj.article.capitalize()} {obj.name} scaled for {userdata.nickname} would be {obj.getStatsSentence(userdata.scale, userdata.unitsystem)}") async def setup(bot): await bot.add_cog(ObjectsCog(bot))