@@ -0,0 +1,1839 @@
+#----------------------#%0A#   Mumble Music Bot   #%0A#  By Matthieu Grieger #%0A#----------------------#---------------------------#%0A# musicbot.py                                      #%0A# Contains definitions of musicbot class & methods #%0A#--------------------------------------------------#%0A#import pymumble here%0Afrom config import *%0A%0Aclass MusicBot:%0A%09# Since all the configuration is set in config.py, we don't really need to do anything here.%0A%09def __init__(self):%0A%09%09print('Starting up ' + SERVER_USERNAME + '...') %0A%09%0A%09# Connects to the Mumble server with the credentials specified upon object creation.%09%0A%09def connect_to_server(self):%0A%09%09self.mumble = pymumble.Mumble(SERVER_ADDRESS, SERVER_PORT, SERVER_USERNAME, SERVER_PASSWORD, debug = DEBUG)%0A%09%09self.mumble.start()%0A%09%09self.mumble.is_ready()%0A%09%09self.mumble.channels.find_by_name(DEFAULT_CHANNEL).move_in()%0A%09%09self.mumble.users.myself.mute()%0A%09%0A%09# Starts to play the first song in the queue when called. If no songs exist in the queue, it will wait until%0A%09# a song is added.%09%0A%09def start_music(self):%0A%09%09pass%0A%09%09%0A%09# Resumes music when called.%0A%09def play_music(self):%0A%09%09pass%0A%09%09%0A%09# Pauses music until told to resume.%0A%09def pause_music(self):%0A%09%09pass%0A%09%09%0A%09# Adds a YouTube link to the queue along with its metadata.%0A%09def add_to_queue(self):%0A%09%09pass%0A%09%09%0A%09# Sends a message to the chat when a new song starts playing.%09%0A%09def announce_new_song(self):%0A%09%09pass%0A%09%09%0A%09# Raises the volume by the increment decided by the user. %0A%09def raise_volume(self, increment):%0A%09%09pass%0A%09%0A%09# Lowers the volume by the increment decided by the user.%09%0A%09def lower_volume(self, increment):%0A%09%09pass%0A%09%09%0A%09# Moves bot from the current channel to the specified channel.%0A%09def move_bot(self, channel):%0A%09%09pass%0A%09%09%0A%09# Completely stops the bot if a person on the approved list of admins%0A%09# issues the stop command.%0A%09def stop_bot(self):%0A%09%09pass%0A%09%09%0A%09%0A%09%0A%09%0A

Add musicbot.py