From 0fa0018b6656c18c9ce9c958a565f9273ac27099 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Fri, 18 Feb 2022 20:35:21 -0500 Subject: [PATCH] Improved the loading of handlers --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 8be2685..efc1776 100644 --- a/bot.py +++ b/bot.py @@ -4,8 +4,6 @@ import discord import sound import configparser from discord.ext import commands -from gqrxHandler import GQRXHandler -from op25Handler import OP25Handler # Init class for bot @@ -60,10 +58,12 @@ class Bot(commands.Bot): def check_handler(self): if self.Handler == "gqrx": print("Starting GQRX handler") + from gqrxHandler import GQRXHandler self.GQRXHandler = GQRXHandler() elif self.Handler == 'op25': print("Starting OP25 handler") + from op25Handler import OP25Handler self.OP25Handler = OP25Handler() # Start the bot