From ca832ff56354d508a9be8e41563891ac5062e183 Mon Sep 17 00:00:00 2001 From: Yuuki Chan Date: Sun, 18 Feb 2024 23:01:27 +0900 Subject: [PATCH] Reformatted bot.py and added PyYAML requirement. --- requirements.txt | 1 + src/bot.py | 15 +++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/requirements.txt b/requirements.txt index e9405b3..d0fd917 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ colorama==0.4.6 +PyYAML==6.0.1 diff --git a/src/bot.py b/src/bot.py index 9bd8628..4ae6b57 100644 --- a/src/bot.py +++ b/src/bot.py @@ -1,19 +1,22 @@ #!/usr/bin/env python3 +import importlib.util +import inspect +import json +import os import socket import ssl -import time -import json -import yaml -import inspect import sys -import os -import importlib.util +import time + +import yaml + from src.channel_manager import ChannelManager from src.logger import Logger from src.plugin_base import PluginBase from src.sasl import handle_sasl, handle_authenticate, handle_903 + class Bot: def __init__(self, config_file): self.config = self.load_config(config_file)