User talk:Kibje: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
m (test)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<syntaxhighlight lang="XML">
<syntaxhighlight lang="xml">
<advancedsettings>
<settings>
    <loglevel>2</loglevel> <!-- Change this to "1" to hide the on-screen debug log text -->
  <category label="Chat">
     <debug>
     <setting id="run_chat" type="bool" label="Run IrcChat" default="false" />
        <extralogging>true</extralogging>
    <setting id="nickname" type="text" label="Justin.tv Username" default="" visible="eq(-1,true)" />
        <setextraloglevel>64,1024, 16384</setextraloglevel>
    <setting id="password" type="text" label="Justin.tv Password" default="" option="hidden" visible="eq(-2,true)" />
        <showloginfo>true</showloginfo> <!-- Change this to "false" to hide the on-screen debug log text -->
  </category>
    </debug>
</settings>
</advancedsettings>
</syntaxhighlight>
</syntaxhighlight>
Then pass the host, channel and user parameters of your website to the chat.
<source 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)
            )
</source>

Latest revision as of 12:56, 10 July 2018

<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>

Then pass the host, channel and user parameters of your website to the chat.

#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)
            )