|
|
| Line 1: |
Line 1: |
| <syntaxhighlight lang="xml">
| | Boo! |
| <settings>
| |
| <category label="Chat">
| |
| <setting id="run_chat" type="bool" label="Run IrcChat" default="false" />
| |
| <setting id="nickname" type="text" label="Justin.tv Username" default="" visible="eq(-1,true)" />
| |
| <setting id="password" type="text" label="Justin.tv Password" default="" option="hidden" visible="eq(-2,true)" />
| |
| </category>
| |
| </settings>
| |
| </syntaxhighlight>
| |
| | |
| Then pass the host, channel and user parameters of your website to the chat.
| |
| <syntaxhighlight lang=python>
| |
| #if stream started:
| |
| xbmc.sleep(3000)
| |
| if addon.getSetting('run_chat') == 'true':
| |
| xbmc.executebuiltin(
| |
| "RunScript(script.ircchat, run_irc=True&nickname=%s&username=%s&password=%s&host=%s&channel=%s)"
| |
| %(addon.getSetting('nickname'), addon.getSetting('nickname'),
| |
| addon.getSetting('password'), name+'.jtvirc.com', name)
| |
| )
| |
| </syntaxhighlight>
| |