Skip to content

Commit 1124126

Browse files
committed
Fix string formatting
1 parent 10f5765 commit 1124126

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

forward/forward.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ async def tblock(self, ctx, user: discord.Member, time: Optional[MuteTime] = Non
254254
blocked[userid] = (datetime.now(timezone.utc) + duration).timestamp() # until
255255
await ctx.maybe_send_embed("Blocked <@{id}> from send messages to the bot until {until}.".format(id=userid, until=datetime.fromtimestamp(blocked[userid])))
256256
else:
257-
await ctx.maybe_send_embed("This user is already blocked until {}.".format(until=datetime.fromtimestamp(blocked[userid])))
257+
await ctx.maybe_send_embed("This user is already blocked until {}.".format(datetime.fromtimestamp(blocked[userid])))
258258

259259
@commands.command()
260260
@commands.guild_only()
@@ -279,7 +279,7 @@ async def tcheckblock(self, ctx, user: discord.Member):
279279
async with self.config.blocked() as blocked:
280280
userid = str(user.id)
281281
if userid in blocked:
282-
await ctx.maybe_send_embed("User <@{id}> is blocked until.".format(id=userid, until=datetime.fromtimestamp(blocked[userid])))
282+
await ctx.maybe_send_embed("User <@{id}> is blocked until {until}.".format(id=userid, until=datetime.fromtimestamp(blocked[userid])))
283283
else:
284284
await ctx.maybe_send_embed("This user is not blocked.")
285285

0 commit comments

Comments
 (0)