Skip to content

Commit

Permalink
removing extra variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Ereiarrus committed Feb 5, 2024
1 parent d3da8ae commit 5cb10ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/complements_bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,9 +745,8 @@ async def setchance_h(self, ctx: commands.Context) -> Optional[str]:
return to_send

assert chance
to_send = f"@{channel} complement chance set to {chance}!"
await database.set_complement_chance(chance, channel, name_to_id=self.name_to_id)
return to_send
return f"@{channel} complement chance set to {chance}!"

@commands.command(aliases=["disablecommandcomplement", "disablecommandcomp", "disablecmdcomp"])
async def disablecmdcomplement(self, ctx: commands.Context) -> None:
Expand Down Expand Up @@ -860,7 +859,7 @@ async def addcomplement_h(self, ctx: commands.Context) -> Optional[str]:
f"{ComplementsBot.MAX_COMPLEMENT_LENGTH} characters long."

await database.add_complement(complement, user, name_to_id=self.name_to_id)
return f"@{user} new complements added: '{complement}'"
return f"@{user} new complement added: '{complement}'"

@commands.command(aliases=["listcomps"])
async def listcomplements(self, ctx: commands.Context) -> None:
Expand Down

0 comments on commit 5cb10ae

Please sign in to comment.