diff --git a/tgcf/bot/live_bot.py b/tgcf/bot/live_bot.py index 286bf310..9ba168a6 100644 --- a/tgcf/bot/live_bot.py +++ b/tgcf/bot/live_bot.py @@ -133,7 +133,7 @@ async def help_command_handler(event): def get_events(): _ = get_command_prefix() - + logging.info(f"Command prefix is {_} ") command_events = { "start": (start_command_handler, events.NewMessage(pattern=f"{_}start")), "forward": (forward_command_handler, events.NewMessage(pattern=f"{_}forward")), diff --git a/tgcf/bot/utils.py b/tgcf/bot/utils.py index b7eca523..ff70ebb6 100644 --- a/tgcf/bot/utils.py +++ b/tgcf/bot/utils.py @@ -63,4 +63,4 @@ def remove_source(source, forwards: List[Forward]) -> List[Forward]: def get_command_prefix(): if config.is_bot is None: raise ValueError("config.is_bot is not set!") - return "/" if config.is_bot else "." + return "/" if config.is_bot else "\."