Skip to content

Commit

Permalink
new command: &scaled
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiDuncan committed Dec 5, 2023
1 parent cc58521 commit 9af4331
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sizebot/cogs/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,13 @@ async def tags(self, ctx):

await ctx.send(out)

@commands.command(
usage = "[object] <user/size>",
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))

0 comments on commit 9af4331

Please sign in to comment.