From caee74a9de80c94ee959909871961dab768a7430 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Wed, 15 Jun 2022 15:30:32 -0500 Subject: Added command parser --- src/bot.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/bot.py') diff --git a/src/bot.py b/src/bot.py index 9b10736..a27aec0 100644 --- a/src/bot.py +++ b/src/bot.py @@ -1,9 +1,10 @@ from config import Config from ampache.client import AmpacheClient from collections import deque +from command_parser import parse_command, Commands import pymumble_py3 as pymumble -class Bot: +class AmpacheBot: """ The bot class. It reads a config file (given in the constructor) and with it populates its own and the ampache client's variables. @@ -39,10 +40,7 @@ class Bot: self._bot = pymumble.Mumble(host, bot_nick, password=password, certfile=certfile, keyfile=keyfile, reconnect=True, stereo=True) - def read_command(self): - pass - - def parse_command(self): + def read_message(self): pass def add_to_playlist(self, ): -- cgit v1.2.3