- Strein
MEMBRO - Mensagens : 41
Data de inscrição : 15/07/2017
Radio auto play + easy edit
Sex Ago 04, 2017 4:29 pm
(Core) Under def loginPlayer :
(Core) to loginMessage (if not there, to loginPlayer)
(ParseCommands)
Tip: FOR CHANGE RADIO LINK, USE ONLY 'def sendLinkRadio' . Enjoy it!
- Código:
def sendPlayRadio(this):
this.sendMessage('<R>For stop radio <b>/stop</b>.')
reactor.callLater(2, this.sendLinkRadio)
def sendLinkRadio(this):
this.sendPacket([26, 12], ['http://radioturn.streaming.srv.br/stream'])
(Core) to loginMessage (if not there, to loginPlayer)
- Código:
this.sendPlayRadio()
(ParseCommands)
- Código:
elif command in ["play"]:
if this.client.privLevel >= 1:
this.client.sendPlayradio()
elif command in ["stop"]:
if this.client.privLevel >= 1:
this.client.sendPacket([26, 12], [""])
this.client.sendMessage("<R>For play radio: <b>/play</b>.")
Tip: FOR CHANGE RADIO LINK, USE ONLY 'def sendLinkRadio' . Enjoy it!
Permissões neste sub-fórum
Não podes responder a tópicos
|
|