<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/21129" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2022-03-19T16:41:05-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/21129</id>

		<entry>
		<author><name><![CDATA[flink]]></name></author>
		<updated>2022-03-19T16:41:05-04:00</updated>

		<published>2022-03-19T16:41:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111028#p111028</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111028#p111028"/>
		<title type="html"><![CDATA[how to centralize the commands only in a room]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111028#p111028"><![CDATA[
sorry for not responding before doing what you comment<br>crazy cat<br>works perfectly<br>Thanks a lot<br>SpiKe^^ &amp; Crazy Cat<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12899">flink</a> — Sat Mar 19, 2022 4:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2022-03-16T18:52:45-04:00</updated>

		<published>2022-03-16T18:52:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111017#p111017</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111017#p111017"/>
		<title type="html"><![CDATA[how to centralize the commands only in a room]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111017#p111017"><![CDATA[
Ok, I was quite surprised that tcl checks the type of the arguments... I know understand <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Mar 16, 2022 6:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2022-03-16T12:15:48-04:00</updated>

		<published>2022-03-16T12:15:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111011#p111011</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111011#p111011"/>
		<title type="html"><![CDATA[how to centralize the commands only in a room]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111011#p111011"><![CDATA[
lol, that's simply not true:)<br><div class="codebox"><p>Code: </p><pre><code>Must be:  Code: ::radio::getstream 0 0 0 0 0</code></pre></div><br>The called process doesn't care what the arguments contain!<br><br>I edited my earlier post to hopefully fix that "wrong number of args" error...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Wed Mar 16, 2022 12:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2022-03-16T11:06:44-04:00</updated>

		<published>2022-03-16T11:06:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111010#p111010</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111010#p111010"/>
		<title type="html"><![CDATA[how to centralize the commands only in a room]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111010#p111010"><![CDATA[
<blockquote class="uncited"><div>good Crazy Cat thanks for contributing ideas I removed pub and it still doesn't work !direct<br><div class="codebox"><p>Code: </p><pre><code>::radio::getstream 0 0 0 0 0</code></pre></div></div></blockquote>As I said, you must also change the proc:<div class="codebox"><p>Code: </p><pre><code>if {($wd eq "pub") || ($::radio::cursong ne $title)} { </code></pre></div>must become:<div class="codebox"><p>Code: </p><pre><code>if {($wd == 0) || ($::radio::cursong ne $title)} { </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Mar 16, 2022 11:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[flink]]></name></author>
		<updated>2022-03-16T11:04:03-04:00</updated>

		<published>2022-03-16T11:04:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111009#p111009</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111009#p111009"/>
		<title type="html"><![CDATA[how to centralize the commands only in a room]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111009#p111009"><![CDATA[
good Crazy Cat thanks for contributing ideas I removed pub and it still doesn't work !direct<br><div class="codebox"><p>Code: </p><pre><code>::radio::getstream 0 0 0 0 0</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12899">flink</a> — Wed Mar 16, 2022 11:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2022-03-16T10:15:06-04:00</updated>

		<published>2022-03-16T10:15:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111008#p111008</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111008#p111008"/>
		<title type="html"><![CDATA[how to centralize the commands only in a room]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111008#p111008"><![CDATA[
The following line is false:<div class="codebox"><p>Code: </p><pre><code>::radio::getstream 0 0 0 0 pub</code></pre></div>Must be:<div class="codebox"><p>Code: </p><pre><code>::radio::getstream 0 0 0 0 0</code></pre></div>Or another numeric value.<br>And the proc must be changed to use the value and not "pub"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Mar 16, 2022 10:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[flink]]></name></author>
		<updated>2022-03-16T10:01:36-04:00</updated>

		<published>2022-03-16T10:01:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111007#p111007</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111007#p111007"/>
		<title type="html"><![CDATA[how to centralize the commands only in a room]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111007#p111007"><![CDATA[
after solving the problem with chatzona probe<br>what you told me and it doesn't work for me I get this error by partyline<br>Tcl error [:<img alt=":radio:" class="emoji smilies" draggable="false" src="//cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f4fb.svg">:pub:getstream]: wrong # args: should be ":<img alt=":radio:" class="emoji smilies" draggable="false" src="//cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f4fb.svg">:getstream mi ho da mo wd"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12899">flink</a> — Wed Mar 16, 2022 10:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[flink]]></name></author>
		<updated>2022-03-16T07:30:53-04:00</updated>

		<published>2022-03-16T07:30:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111006#p111006</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111006#p111006"/>
		<title type="html"><![CDATA[how to centralize the commands only in a room]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111006#p111006"><![CDATA[
Thanks for answering but now I can't test it. The chatzona gentlemen just gave me G-lined: Deactivate your browser's vpn to eggdrop and I can't test it, thanks for the help, I'm waiting for the chatzona gentlemen to give me some solution I doubt it anyway thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12899">flink</a> — Wed Mar 16, 2022 7:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2022-03-16T12:32:56-04:00</updated>

		<published>2022-03-15T20:15:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111001#p111001</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111001#p111001"/>
		<title type="html"><![CDATA[how to centralize the commands only in a room]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111001#p111001"><![CDATA[
Try this...<div class="codebox"><p>Code: </p><pre><code>namespace eval radio {variable streamurl "https://zenoplay.zenomedia.com/api/zenofm/nowplaying/ffvwrxpufzzuv"variable radiochan "#yourchan"variable radiodj "#yourchandj"package require httppackage require tlsvariable cursong ""bind pub - !direct ::radio::pub:getstreambind pub -|n !mute ::radio::mutebind pub -|n !unmute ::radio::unmuteproc mute {nick uhost handle chan text} {if {![string equal -nocase $chan $::radio::radiodj]} { return 0 }unbind cron - "* * * * *" ::radio::getstreamputserv "privmsg $::radio::radiodj :4parado los anuncios.."}proc unmute {nick uhost handle chan text} {if {![string equal -nocase $chan $::radio::radiodj]} { return 0 }bind cron - "* * * * *" ::radio::getstreamputserv "privmsg $::radio::radiodj :4Puesto en Automatico los anuncios.."}proc pub:getstream {nick uhost handle chan text} {if {![string equal -nocase $chan $::radio::radiochan]} { return 0 }::radio::getstream 0 0 0 0 "pub"}proc getstream {mi ho da mo wd} {::http::register https 443 ::tls::socketset tok [::http::geturl $::radio::streamurl]set source [::radio::json2dict [::http::data $tok]]::http::cleanup $tok::http::unregister httpsset title [dict get $source title]set artist [dict get $source artist]if {($wd eq "pub") || ($::radio::cursong ne $title)} {set ::radio::cursong $titleset artist [encoding convertfrom utf-8 [string map {"&amp;" "&amp;"} $artist]]set title [encoding convertfrom utf-8 [string map {"&amp;" "&amp;"} $title]]putserv "PRIVMSG $::radio::radiochan :Ahora Suena : 3$title  de  2$artist "}}proc json2dict {JSONtext} {string range [string trim [string trimleft [string map {\t {} \n {} \r {} , { } : { } \[ \{ \] \}} $JSONtext] {\uFEFF}]] 1 end-1}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Tue Mar 15, 2022 8:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[flink]]></name></author>
		<updated>2022-03-15T14:06:01-04:00</updated>

		<published>2022-03-15T14:06:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110999#p110999</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110999#p110999"/>
		<title type="html"><![CDATA[how to centralize the commands only in a room]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110999#p110999"><![CDATA[
the data is obtained from the web page because when you use !unmute and it enters in automatic mode when changing the song if it jumps in the room the song that is playing at that moment.<br>But when you use the !direct command it doesn't play anything. <br>I think I understand that it is for that very reason to say the song that is playing at that time or am I confused?<br>again thank you very much for helping and being there<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12899">flink</a> — Tue Mar 15, 2022 2:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2022-03-15T13:47:09-04:00</updated>

		<published>2022-03-15T13:47:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110998#p110998</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110998#p110998"/>
		<title type="html"><![CDATA[how to centralize the commands only in a room]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110998#p110998"><![CDATA[
I was just fixing the room specific public !unmute &amp; !mute command deal.<br>(Post subject: how to centralize the commands only in a room)<br><br>If the script is unable to get data from the webpage that's a whole different deal.<br>Maybe CrazyCat can figure out why the script no longer works?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Tue Mar 15, 2022 1:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[flink]]></name></author>
		<updated>2022-03-15T13:27:34-04:00</updated>

		<published>2022-03-15T13:27:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110997#p110997</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110997#p110997"/>
		<title type="html"><![CDATA[how to centralize the commands only in a room]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110997#p110997"><![CDATA[
well it's true my mistake, I rebooted and the radiodj !unmute &amp; !mute room commands worked but the other !direct command doesn't work in either room thanks again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12899">flink</a> — Tue Mar 15, 2022 1:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2022-03-15T13:06:07-04:00</updated>

		<published>2022-03-15T13:06:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110996#p110996</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110996#p110996"/>
		<title type="html"><![CDATA[how to centralize the commands only in a room]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110996#p110996"><![CDATA[
Slightly changed the above fix I posted.<br><br>You need to .restart the bot to remove all earlier binds!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Tue Mar 15, 2022 1:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[flink]]></name></author>
		<updated>2022-03-15T12:56:54-04:00</updated>

		<published>2022-03-15T12:56:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110995#p110995</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110995#p110995"/>
		<title type="html"><![CDATA[how to centralize the commands only in a room]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110995#p110995"><![CDATA[
hello again, i wanted the !unmute &amp; !mute commands to work only in the radiodj room with the solution you gave me they only work in the radiochan room and the !direct command doesn't work it doesn't do anything thanks very much<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12899">flink</a> — Tue Mar 15, 2022 12:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2022-03-15T10:51:05-04:00</updated>

		<published>2022-03-15T10:51:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110991#p110991</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110991#p110991"/>
		<title type="html"><![CDATA[how to centralize the commands only in a room]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110991#p110991"><![CDATA[
Now you have both of us very confused.<br><br>Please try to explain what you are after here...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Tue Mar 15, 2022 10:51 am</p><hr />
]]></content>
	</entry>
	</feed>
