From e07e82b9dd93c97e53521f9fcdc967febf8d0eeb Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Wed, 15 Jun 2022 12:05:51 -0500 Subject: Added bot's code --- src/main.py | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'src/main.py') diff --git a/src/main.py b/src/main.py index 118434b..4a87586 100644 --- a/src/main.py +++ b/src/main.py @@ -1,16 +1,22 @@ -import ampache +from config import Config import pymumble_py3 as pymumble +from ampache.client import AmpacheClient +# def main(): +# example_bot = pymumble.Mumble('192.168.15.18', 'ampache', password='cultoblandonianoEXTREME', certfile='../ampache.pem', keyfile='../ampachekey.pem', +# reconnect=True, stereo=True) +# example_bot.set_application_string('ampache-client') +# example_bot.start() +# example_bot.is_ready() +# example_bot.set_loop_rate(.01) + +# while True: +# continue def main(): - example_bot = pymumble.Mumble('192.168.15.18', 'ampache', password='cultoblandonianoEXTREME', certfile='../ampache.pem', keyfile='../ampachekey.pem', - reconnect=True, stereo=True) - example_bot.set_application_string('ampache-client') - example_bot.start() - example_bot.is_ready() - example_bot.set_loop_rate(.01) + config = Config('../example.cfg') + client = AmpacheClient('https://music.silosneeded.com', '4dee7fe5554cf581a3f69ea023ea378a', 53200) - while True: - continue + return 0 if __name__ == '__main__': -- cgit v1.2.3