Skip to content

Commit

Permalink
fixed missing @guild_only decorator in scalewalk
Browse files Browse the repository at this point in the history
  • Loading branch information
nfearnley committed May 25, 2024
1 parent 15543bd commit c0d279d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sizebot/cogs/scalewalk.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def __init__(self, bot: commands.Bot):
category = "scalestep",
usage = "<change per step> <distance> [apply]"
)
@commands.guild_only()
async def scalewalk(self, ctx: BotContext, change: Diff, dist: SV, flag: str | None = None):
"""Walk a certain distance, scaling by an amount each step you take.
Accepts addition or subtraction of a certain height, or multiplication/division of a factor.
Expand Down Expand Up @@ -149,6 +150,7 @@ async def scalewalk(self, ctx: BotContext, change: Diff, dist: SV, flag: str | N
category = "scalestep",
usage = "<change per step> <distance> [apply]"
)
@commands.guild_only()
async def scalerun(self, ctx: BotContext, change: Diff, dist: SV, flag: str | None = None):
"""Run a certain distance, scaling by an amount each step you take.
Accepts addition or subtraction of a certain height, or multiplication/division of a factor.
Expand Down Expand Up @@ -202,6 +204,7 @@ async def scalerun(self, ctx: BotContext, change: Diff, dist: SV, flag: str | No
category = "scalestep",
usage = "<change per step>"
)
@commands.guild_only()
async def setstepscale(self, ctx: BotContext, *, change: Diff):
"""Set the amount you scale per step, for use with `&step`.
Expand Down Expand Up @@ -229,6 +232,7 @@ async def setstepscale(self, ctx: BotContext, *, change: Diff):
"clearwalkscale", "unsetwalkscale", "resetscalewalk", "clearscalewalk", "unsetscalewalk",
"resetwalkscale"]
)
@commands.guild_only()
async def resetstepscale(self, ctx: BotContext):
"""Clear your step-scale amount, for use with `&step`."""

Expand All @@ -243,6 +247,7 @@ async def resetstepscale(self, ctx: BotContext):
@commands.command(
category = "scalestep",
)
@commands.guild_only()
async def step(self, ctx: BotContext, steps: int | None = None):
"""Step a certain number of times, scaling by the amount set in `&setscalestep`.
Expand Down

0 comments on commit c0d279d

Please sign in to comment.