Compare commits

..

No commits in common. "fb8e623a84482518dae05abe8cc95b40de11c7a5" and "f86a5aa62a02ad296b03d5d3269a5485dd349500" have entirely different histories.

View file

@ -20,7 +20,6 @@ from src.sasl import handle_sasl, handle_authenticate, handle_903
class Bot:
def __init__(self, config_file):
self.config = self.load_config(config_file)
self.validate_config(self.config)
self.channel_manager = ChannelManager()
self.logger = Logger('logs/elitebot.log')
self.connected = False
@ -28,6 +27,8 @@ class Bot:
self.running = True
self.plugins = []
self.load_plugins()
self.config = self.load_config(config_file)
self.validate_config(self.config)
def validate_config(self, config):
required_fields = [
@ -211,7 +212,6 @@ class Bot:
self.logger.error(f'General error: {e}')
self.connected = False
if __name__ == '__main__':
try:
bot = Bot(sys.argv[1])