summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2022-06-15 15:30:32 -0500
committerHombreLaser <sebastian-440@live.com>2022-06-15 15:30:32 -0500
commitcaee74a9de80c94ee959909871961dab768a7430 (patch)
tree35f150da39dc790917a116c81dcfc4164e583a08
parente07e82b9dd93c97e53521f9fcdc967febf8d0eeb (diff)
Added command parser
-rw-r--r--src/bot.py8
1 files changed, 3 insertions, 5 deletions
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, ):