-
Notifications
You must be signed in to change notification settings - Fork 0
/
hurby.py
29 lines (24 loc) · 1.12 KB
/
hurby.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from character.character_manager import CharacterManager
from config.bot_config import BotConfig
from items.item_manager import ItemManager
from modules.lottery.lottery_manager import LotteryManager
from twitch_hurby.minigame.loots import Loots
from twitch_hurby.twitch_receiver import TwitchReceiver
from utils.api_test import test_api
class Hurby:
def __init__(self):
self.botConfig = BotConfig()
self.char_manager: CharacterManager = CharacterManager(self)
if self.botConfig.modules[BotConfig.MODULE_LOTTERY]:
self.lottery_manager = LotteryManager(self)
if self.botConfig.modules[BotConfig.MODULE_TWITCH]:
self.twitch_receiver = TwitchReceiver(self)
self.loots = Loots(self.char_manager, self.twitch_receiver.twitch_listener)
self.twitch_receiver.twitch_conf.load_cmds()
self.twitch_receiver.twitch_conf.load_events()
self.item_manager = ItemManager()
test_api(self)
def get_twitch_receiver(self) -> TwitchReceiver:
return self.twitch_receiver
def get_bot_config(self) -> BotConfig:
return self.botConfig