forked from Raiza.dev/EliteBot
Reformatted bot.py and added PyYAML requirement.
This commit is contained in:
parent
76511c817c
commit
ca832ff563
2 changed files with 10 additions and 6 deletions
|
@ -1 +1,2 @@
|
||||||
colorama==0.4.6
|
colorama==0.4.6
|
||||||
|
PyYAML==6.0.1
|
||||||
|
|
15
src/bot.py
15
src/bot.py
|
@ -1,19 +1,22 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import importlib.util
|
||||||
|
import inspect
|
||||||
|
import json
|
||||||
|
import os
|
||||||
import socket
|
import socket
|
||||||
import ssl
|
import ssl
|
||||||
import time
|
|
||||||
import json
|
|
||||||
import yaml
|
|
||||||
import inspect
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import time
|
||||||
import importlib.util
|
|
||||||
|
import yaml
|
||||||
|
|
||||||
from src.channel_manager import ChannelManager
|
from src.channel_manager import ChannelManager
|
||||||
from src.logger import Logger
|
from src.logger import Logger
|
||||||
from src.plugin_base import PluginBase
|
from src.plugin_base import PluginBase
|
||||||
from src.sasl import handle_sasl, handle_authenticate, handle_903
|
from src.sasl import handle_sasl, handle_authenticate, handle_903
|
||||||
|
|
||||||
|
|
||||||
class Bot:
|
class Bot:
|
||||||
def __init__(self, config_file):
|
def __init__(self, config_file):
|
||||||
self.config = self.load_config(config_file)
|
self.config = self.load_config(config_file)
|
||||||
|
|
Loading…
Add table
Reference in a new issue