<?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/20190" />

	<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>2016-07-31T03:16:27-04:00</updated>

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

		<entry>
		<author><name><![CDATA[sky6419]]></name></author>
		<updated>2016-07-31T03:16:27-04:00</updated>

		<published>2016-07-31T03:16:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105287#p105287</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105287#p105287"/>
		<title type="html"><![CDATA[Alternative commands in BogusTrivia]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105287#p105287"><![CDATA[
Thank you so much you could tell me the guides for writing tcl?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> SpiKe^^.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12331">sky6419</a> — Sun Jul 31, 2016 3:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2016-07-30T18:46:24-04:00</updated>

		<published>2016-07-30T18:46:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105286#p105286</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105286#p105286"/>
		<title type="html"><![CDATA[Alternative commands in BogusTrivia]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105286#p105286"><![CDATA[
sky6419<br><br>Try turning on the strip colors setting, it is off by default...<div class="codebox"><p>Code: </p><pre><code># strip color codes from players answers # requires eggdrop 1.6.17+ ## allow BogusTrivia to accept answers typed in color ? ## this will have the bot remove color codes to look for an answer match #set t2(stripcolor) "1"   ;# (1=yes | 0=no) #</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Jul 30, 2016 6:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sky6419]]></name></author>
		<updated>2016-07-30T15:40:56-04:00</updated>

		<published>2016-07-30T15:40:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105285#p105285</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105285#p105285"/>
		<title type="html"><![CDATA[Alternative commands in BogusTrivia]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105285#p105285"><![CDATA[
Hello asked a question in this section do not know if it is correct.<br>However the question is how can I accept the answers of those who write the script colored bogus trivia?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12331">sky6419</a> — Sat Jul 30, 2016 3:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2016-07-16T16:38:19-04:00</updated>

		<published>2016-07-16T16:38:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105262#p105262</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105262#p105262"/>
		<title type="html"><![CDATA[Alternative commands in BogusTrivia]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105262#p105262"><![CDATA[
<blockquote class="uncited"><div>No, not at all.<br><br>BogusTrivia will probably never be a multi-channel script.</div></blockquote>Ok, I assumed it would be difficult the cuestion of databases of users and scores.<br>Thank you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sat Jul 16, 2016 4:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2016-07-16T05:50:41-04:00</updated>

		<published>2016-07-16T05:50:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105261#p105261</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105261#p105261"/>
		<title type="html"><![CDATA[Alternative commands in BogusTrivia]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105261#p105261"><![CDATA[
No, not at all.<br><br>BogusTrivia will probably never be a multi-channel script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Jul 16, 2016 5:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2016-07-16T05:20:24-04:00</updated>

		<published>2016-07-16T05:20:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105260#p105260</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105260#p105260"/>
		<title type="html"><![CDATA[Alternative commands in BogusTrivia]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105260#p105260"><![CDATA[
<strong class="text-strong">SpiKe^^</strong> it works perfectly, thank you so much!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><br>So, as far as I can see, that could allow to make it able to play in several channels, right ?<br><br>When you'll hace a minute I would thank you to helping me in that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sat Jul 16, 2016 5:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2016-07-15T23:32:59-04:00</updated>

		<published>2016-07-15T23:32:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105259#p105259</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105259#p105259"/>
		<title type="html"><![CDATA[BogusTrivia: multiple on and/or off triggers.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105259#p105259"><![CDATA[
Great request juanamores.<br><br>Making that happen for you will require quite a bit of editing of the t-2.tcl file.  If you are careful and follow these directions exactly, you should be able to do the editing:)<br><br><br>1) Find this line in the t-2.tcl file...<div class="codebox"><p>Code: </p><pre><code> set v(tls2) "chan on off upubq hint p-cmdpre m-cmdpre hintchar"</code></pre></div> and make it look more like this...<div class="codebox"><p>Code: </p><pre><code> set v(tls2) "chan upubq hint p-cmdpre m-cmdpre hintchar"</code></pre></div><br>2) Then Find this line...<div class="codebox"><p>Code: </p><pre><code> set v(tls3) "p-mystat p-opstat p-info p-owner p-page p-top-d p-t20-d p-tmor-d"</code></pre></div> and make it look more like this...<div class="codebox"><p>Code: </p><pre><code> set v(tls3) "on off p-mystat p-opstat p-info p-owner p-page p-top-d p-t20-d p-tmor-d"</code></pre></div><br>3) Next find this chunk of code...<div class="codebox"><p>Code: </p><pre><code> if {$t2(p-cmdpre) ne "."} {   foreach x {on off} {  set y $t2($x)    if {[string match .* $y]} {  set t2($x) "$t2(p-cmdpre)[string range $y 1 end]"  }   } }</code></pre></div> and delete that entire chunk of code (All 5 lines)<br><br><br>4) Then Find these two lines...<div class="codebox"><p>Code: </p><pre><code>if {$t2(off) ne $t2(on)} {  bind pubm $t2(sflag) "$t2(chan) $t2(off)" TOnOff  }bind pubm $t2(oflag) "$t2(chan) $t2(on)" TOnOff</code></pre></div> delete those 2 lines and replace them with these...<div class="codebox"><p>Code: </p><pre><code>foreach ttmp(x) $t2(on) {  bind pubm - "$t2(chan) $ttmp(x)" TOnOff  }if {$t2(off) ne $t2(on)} {  foreach ttmp(x) $t2(off) {   if {[lsearch -nocase $t2(on) $ttmp(x)]=="-1"} {     bind pubm - "$t2(chan) $ttmp(x)" TOnOff   }  }}</code></pre></div><br>5) Then Find this line...<div class="codebox"><p>Code: </p><pre><code>   if {$from=="0" &amp;&amp; ![string match -nocase $t2(on) $tx]} {  return 0  }</code></pre></div> delete that line and replace it with these...<div class="codebox"><p>Code: </p><pre><code>   if {$from=="0"} {     if {[lsearch -nocase $t2(on) $tx]=="-1"} {  return 0  }     if {$t2(oflag) ne "-" &amp;&amp; $hn eq "*"} {  return 0  }     if {$t2(oflag) ne "-" &amp;&amp; ![matchattr $hn $t2(oflag) $ch]} {  return 0  }   }</code></pre></div><br>6) Then Find this line...<div class="codebox"><p>Code: </p><pre><code>   if {$from=="0" &amp;&amp; ![string match -nocase $t2(off) $tx]} {  return 0  }</code></pre></div> delete that line and replace it with these...<div class="codebox"><p>Code: </p><pre><code>   if {$from=="0"} {     if {[lsearch -nocase $t2(off) $tx]=="-1"} {  return 0  }     if {$t2(sflag) ne "-" &amp;&amp; $hn eq "*"} {  return 0  }     if {$t2(sflag) ne "-" &amp;&amp; ![matchattr $hn $t2(sflag) $ch]} {  return 0  }   }</code></pre></div><br>7) Save &amp; close the t-2.tcl file, and now edit the t-2.settings.tcl file. Find this chunk of code in the t-2.settings.tcl file...<div class="codebox"><p>Code: </p><pre><code>set t2(on) ".t2"      ;# public trigger to turn game on #set t2(off) ""        ;# public trigger, game off  ("" = same as on trigger) #set t2(oflag) "o|o"   ;# flags to turn the game on ("" = everyone) #set t2(sflag) ""      ;# flags to turn game off    ("" = same as on flags) #                      ;# separate off flags requires using separate on &amp; off triggers #</code></pre></div> and make it look more like this...<div class="codebox"><p>Code: </p><pre><code>set t2(on) "!start !comenzar"      ;# public trigger(s) to turn game on #set t2(off) "!stop !detener"       ;# public trigger(s), game off  ("" = same as on trigger(s)) #set t2(oflag) "o|o"   ;# flags to turn the game on ("" = everyone) #set t2(sflag) ""      ;# flags to turn game off    ("" = same as on flags) #                      ;# Separate off flags No Longer Requires using separate on &amp; off triggers !! #</code></pre></div><br>8) Save &amp; close the t-2.settings.tcl file. Upload the t-2.tcl &amp; t-2.settings.tcl files to the shell and rehash the bot.<br><br><br>Please test this code and report back.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Jul 15, 2016 11:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2016-07-15T18:22:28-04:00</updated>

		<published>2016-07-15T18:22:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105257#p105257</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105257#p105257"/>
		<title type="html"><![CDATA[Alternative commands in BogusTrivia]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105257#p105257"><![CDATA[
juanamores<br><br>I am working on this request.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Jul 15, 2016 6:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2016-07-15T08:57:28-04:00</updated>

		<published>2016-07-15T08:57:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105255#p105255</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105255#p105255"/>
		<title type="html"><![CDATA[Alternative commands in BogusTrivia]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105255#p105255"><![CDATA[
if I use this, I just change the names of the commands, but I cannot use altenatives commands.<br><br>What I want is that Trivial could be started and stopped with two differents commands.<br><br><strong class="text-strong">Example:</strong><blockquote class="uncited"><div>@oper: !start<br>@BoT: BogusTrivia loading......<br>@oper: !stop <br>@BoT: BogusTrivia stopped.<br>@oper: !comenzar<br>@BoT: BogusTrivia loading......<br>@oper: !detener<br>@BoT: BogusTrivia stopped.</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Fri Jul 15, 2016 8:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[d3n]]></name></author>
		<updated>2016-07-15T05:31:47-04:00</updated>

		<published>2016-07-15T05:31:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105254#p105254</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105254#p105254"/>
		<title type="html"><![CDATA[Alternative commands in BogusTrivia]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105254#p105254"><![CDATA[
go to file <strong class="text-strong">t-2.settings.tcl</strong> and edit this line<div class="codebox"><p>Code: </p><pre><code>set t2(on) "!trivia"      ;# public trigger to turn game on #set t2(off) "!strivia"        ;# public trigger, game off  ("" = same as on trigger)</code></pre></div>!trivia on !comenzar <br>!strivia on !detener <br><br>try and let me know if it works.......<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12641">d3n</a> — Fri Jul 15, 2016 5:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2016-07-15T03:22:59-04:00</updated>

		<published>2016-07-15T03:22:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105253#p105253</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105253#p105253"/>
		<title type="html"><![CDATA[Alternative commands in BogusTrivia]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105253#p105253"><![CDATA[
¿ Is possible alternative commands  to turn on and off the trivial ?<br><br>Example commands for play: <strong class="text-strong"><span style="color:green">!start</span></strong> or<strong class="text-strong"> <span style="color:green">!comenzar</span></strong><br>Example commands for stop:<strong class="text-strong"> <span style="color:red">!stop</span></strong> or <strong class="text-strong"><span style="color:red">!detener</span></strong><br><br>If you could modify that , commands can be understood by Spanish and English speakers.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Fri Jul 15, 2016 3:22 am</p><hr />
]]></content>
	</entry>
	</feed>
