parent
22744b3794
commit
145e3f9c32
@ -72,11 +72,11 @@ url_unban = urlunban
|
||||
reload = reload
|
||||
|
||||
[radio]
|
||||
ponyville = http://192.99.131.205:8000/stream.mp3
|
||||
luna = http://radio.ponyvillelive.com:8002/stream
|
||||
radiobrony = http://62.210.138.34:8000/live
|
||||
ponyville = http://192.99.131.205:8000/stream.mp3 "Here a command of !radio comment"
|
||||
luna = http://radio.ponyvillelive.com:8002/stream "calm and orchestra music"
|
||||
radiobrony = http://62.210.138.34:8000/live "Borny music of a friend"
|
||||
celestiaradio = http://celestia.aiverse.org:8000/mp3_256
|
||||
jazz = http://jazz-wr04.ice.infomaniak.ch/jazz-wr04-128.mp3
|
||||
jazz = http://jazz-wr04.ice.infomaniak.ch/jazz-wr04-128.mp3 "Jazz Yeah !"
|
||||
|
||||
[strings]
|
||||
current_volume = volume : %d%%
|
||||
@ -87,6 +87,7 @@ not_playing = No music right now
|
||||
bad_file = Bad file requested
|
||||
no_file = File not found
|
||||
bad_url = Bad URL requested
|
||||
preconfigurated_radio = Preconfigurated Radio available
|
||||
unable_download = Error while downloading the music...
|
||||
multiple_matches = Track not found! Possible candidates:
|
||||
queue_contents = The next items in the queue are:
|
||||
|
13
mumbleBot.py
13
mumbleBot.py
@ -307,9 +307,20 @@ class MumbleBot:
|
||||
if media.playlist.get_playlist_info(url=self.get_url_from_input(parameter), start_index=offset, user=user):
|
||||
self.async_download_next()
|
||||
|
||||
elif command == var.config.get('command', 'play_radio') and parameter:
|
||||
elif command == var.config.get('command', 'play_radio'):
|
||||
if not parameter:
|
||||
all_radio = var.config.items('radio')
|
||||
msg = var.config.get('strings', 'preconfigurated_radio') + " :<br />"
|
||||
for i in all_radio:
|
||||
comment = ""
|
||||
if len(i[1].split(maxsplit=1)) == 2:
|
||||
comment = " - " + i[1].split(maxsplit=1)[1]
|
||||
msg += "<br />" + i[0] + comment
|
||||
self.send_msg(msg)
|
||||
else:
|
||||
if var.config.has_option('radio', parameter):
|
||||
parameter = var.config.get('radio', parameter)
|
||||
parameter = parameter.split()[0]
|
||||
music = {'type': 'radio',
|
||||
'url': self.get_url_from_input(parameter),
|
||||
'user': user}
|
||||
|
2
pymumble
2
pymumble
@ -1 +1 @@
|
||||
Subproject commit 95945caf51b67919477d088b5d339087bb4397c5
|
||||
Subproject commit 437d2ebec6e18b5ad69b77020596c250a5e1b785
|
Loading…
x
Reference in New Issue
Block a user