Skip to content

Commit

Permalink
fixed stop_changs
Browse files Browse the repository at this point in the history
  • Loading branch information
nfearnley committed May 20, 2024
1 parent b37f2b8 commit a1c9020
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
6 changes: 3 additions & 3 deletions sizebot/cogs/change.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from sizebot.lib import errors, utils
from sizebot.lib.digidecimal import Decimal

from discord import Member, User, Guild
from discord import Member
from discord.ext import commands, tasks

import sizebot.data
Expand Down Expand Up @@ -75,7 +75,7 @@ async def change(self, ctx: BotContext, *, arg: LimitedRate | Rate | Diff | str)
changes.start(userid, guildid, addPerSec=arg.addPerSec, mulPerSec=arg.mulPerSec, stopSV=arg.stopSV, stopTV=arg.stopTV)
await ctx.send(f"{ctx.author.display_name} has begun slow-changing at a rate of `{str(arg)}`.")
elif arg == "stop":
await ctx.send(**stop_changes(ctx.author, ctx.guild))
await ctx.send(**stop_changes(ctx.author))

@commands.command(
hidden = True
Expand All @@ -99,7 +99,7 @@ async def changes(self, ctx: BotContext):
@commands.guild_only()
async def stopchange(self, ctx: BotContext):
"""Stop a currently active slow change."""
await ctx.send(**stop_changes(ctx.author, ctx.guild))
await ctx.send(**stop_changes(ctx.author))

@commands.command(
aliases = ["eat"],
Expand Down
4 changes: 0 additions & 4 deletions sizebot/cogs/register.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import asyncio
import logging
from typing import Annotated

import discord
from discord.utils import get
Expand All @@ -10,9 +9,6 @@
from sizebot.lib import errors, userdb, nickmanager
from sizebot.lib.constants import ids, emojis
from sizebot.lib.types import BotContext
from sizebot.lib.units import SV, WV
from sizebot.lib.stats import AVERAGE_HEIGHT, AVERAGE_WEIGHT
from sizebot.lib.unitsystem import UnitSystem, parse_unitsystem

logger = logging.getLogger("sizebot")

Expand Down
4 changes: 2 additions & 2 deletions sizebot/cogs/set.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from sizebot.cogs.register import show_next_step
from sizebot.lib import userdb, nickmanager
from sizebot.lib.diff import LinearRate, Rate
from sizebot.lib.diff import LinearRate
from sizebot.lib.digidecimal import Decimal
from sizebot.lib.gender import Gender, parse_gender
from sizebot.lib.loglevels import EGG
Expand All @@ -15,7 +15,7 @@
from sizebot.lib.types import BotContext
from sizebot.lib.units import SV, WV, pos_SV, pos_WV
from sizebot.lib.unitsystem import UnitSystem, parse_unitsystem
from sizebot.lib.utils import AliasMap, parse_scale, randrange_log
from sizebot.lib.utils import parse_scale, randrange_log

logger = logging.getLogger("sizebot")

Expand Down
3 changes: 1 addition & 2 deletions sizebot/cogs/setbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
from sizebot.cogs.register import show_next_step
from sizebot.lib import errors, userdb, nickmanager
from sizebot.lib.constants import emojis
from sizebot.lib.diff import LinearRate, Rate
from sizebot.lib.digidecimal import Decimal
from sizebot.lib.diff import LinearRate
from sizebot.lib.shoesize import to_shoe_size, from_shoe_size
from sizebot.lib.stats import HOUR
from sizebot.lib.types import BotContext
Expand Down

0 comments on commit a1c9020

Please sign in to comment.