summaryrefslogtreecommitdiff
path: root/src/main.py
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2022-06-15 12:05:51 -0500
committerHombreLaser <sebastian-440@live.com>2022-06-15 12:05:51 -0500
commite07e82b9dd93c97e53521f9fcdc967febf8d0eeb (patch)
treeadd66fb450082b2cdcf6811ea8711d3463ea8a7c /src/main.py
parent71a2a3fd8b13f6c3e942df5e68bb56e5aad50c2f (diff)
Added bot's code
Diffstat (limited to 'src/main.py')
-rw-r--r--src/main.py24
1 files changed, 15 insertions, 9 deletions
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__':