From c4c0a4317d6673f6a46ed81e0d26b49242b56ba6 Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Mon, 4 Dec 2023 22:50:03 -0600 Subject: [PATCH] Formatting --- config.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 9a853f8..4286ab3 100644 --- a/config.py +++ b/config.py @@ -67,9 +67,14 @@ def mfind(message: str, find: list, usePrefix: bool = True) -> bool: else: return any(message[: len(match)] == match for match in find) -def sub(message: str, bot: bare.bot, chan: Optional[str] = "", name: Optional[str] = "") -> str: + +def sub( + message: str, bot: bare.bot, chan: Optional[str] = "", name: Optional[str] = "" +) -> str: result = message.replace("$BOTNICK", bot.nick).replace("$NICK", bot.nick) - result = result.replace("$NICKLEN", str(bot.nicklen)).replace("$MAX", str(bot.nicklen)) + result = result.replace("$NICKLEN", str(bot.nicklen)).replace( + "$MAX", str(bot.nicklen) + ) if chan: result = result.replace("$CHANNEL", chan).replace("$CHAN", chan) if name: