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

	<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>2008-12-19T11:05:15-04:00</updated>

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

		<entry>
		<author><name><![CDATA[MetalGuru1972]]></name></author>
		<updated>2008-12-19T11:05:15-04:00</updated>

		<published>2008-12-19T11:05:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86372#p86372</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86372#p86372"/>
		<title type="html"><![CDATA[trivia.tcl autostart]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86372#p86372"><![CDATA[
I am using a modified version of trivia.tcl and it currently needs someone to type a command to start the game. The channel it runs in has a lot of trivia addicts and i would like it to auto start when the bot runs.<br><br>The bot is running on a cron so it is rare that this is needed, however as i'm learning tcl as i play, it would be nice to add this modification to the code.<br><br>below is the code that traps the command if it is typed in the channel. Could anyone help me add something that will either call this procedure or start the game when the bot either restarts due to a server issue or restarts due to someone accessing the command via the partyline.<br><br>Thanks in advance<br><br>#starts the game if it isn't running.<br>proc tgstart {nick host hand chan text} {<br>global tgplaying tgstreak tgchan tgerrremindtime tgerrremindtimer tgmissed<br>if {[strlwr $tgchan]==[strlwr $chan]} {<br>if {$tgplaying==0} {<br>tggamemsg "[tgcolstart]Trivia game started by $nick!"<br>tgnextq<br>set tgplaying 1<br>set tgstreak 0<br>set tgmissed 0<br>set tgerrremindtimer [timer $tgerrremindtime tgerrremind]<br>}<br>}<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9316">MetalGuru1972</a> — Fri Dec 19, 2008 11:05 am</p><hr />
]]></content>
	</entry>
	</feed>
