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

	<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>2023-11-24T18:29:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[mondino]]></name></author>
		<updated>2023-11-24T18:29:34-04:00</updated>

		<published>2023-11-24T18:29:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112292#p112292</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112292#p112292"/>
		<title type="html"><![CDATA[Re: Trivia TCL Script Modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112292#p112292"><![CDATA[
Hi CrazyCat;<br><br>I thank you so much for your reply.<br><br>I have put your code on my Trivia Eggdrop Bot, and I'm testing it. Till now, it is working very well.<br><br>I'll do some more modifications on it, like put in few output messages to tell the users when the bot is gonna be on OFF and ON modes, so they get to know when the game will be available and when not.<br><br>I, actually, don't want the game to be accessible (when someone types !start on channel) when the bot is on OFF mode, and if someone tries to start the game, the bot should give out a message saying: The game is on OFF mode now. It will be active again on "the remaining time for it to be ON again". When the bot is on "ON mode", It'll send out a message to channel before 10 mins and 2 mins of the bot going to OFF mode telling users that the bot is going to be on "OFF mode" after 10 mins and 2 mins.<br><br>I and willy will be trying to let the bot do that with your script above. I'll get back to you if anything needed.<br><br>I thank you again for your help.<br><br>Regards,<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12749">mondino</a> — Fri Nov 24, 2023 6:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2023-11-23T09:41:26-04:00</updated>

		<published>2023-11-23T09:41:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112290#p112290</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112290#p112290"/>
		<title type="html"><![CDATA[Re: Trivia TCL Script Modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112290#p112290"><![CDATA[
Can be done quite easily:<br><br>1. comment the 2 binds (!start and !stop):<div class="codebox"><p>Code: </p><pre><code>#bind pubm $tgflagsstart "$tgchan %$tgcmdstart" tgstart#bind pubm $tgflagsstop "$tgchan %$tgcmdstop" tgstop</code></pre></div>2. add crontab binds:<div class="codebox"><p>Code: </p><pre><code>bind cron - "00 02,05,08,11,14,17,20,23 * * *" timetgstartbind cron - "00 01,04,07,10,13,16,19,22 * * *" timetgstop</code></pre></div>3. add the following procedures:<div class="codebox"><p>Code: </p><pre><code>proc timetgstart {min hour day month dow} {   tgstart $::botnick "launch@127.0.0.1" * $::tgchan ""}proc timetgstop {min hour day month dow} {   tgstop $::botnick "launch@127.0.0.1" * $::tgchan ""}</code></pre></div>I'd tried to modify the lesser the code, so the timetgstart and timetgstop fake a !start and !stop command.<br><br>Remember that if you just reload the script (via .tcl source or .rehash), you'll have to unbind manually the !start and !stop binds<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Nov 23, 2023 9:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mondino]]></name></author>
		<updated>2023-11-23T07:22:58-04:00</updated>

		<published>2023-11-23T07:22:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112289#p112289</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112289#p112289"/>
		<title type="html"><![CDATA[Trivia TCL Script Modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112289#p112289"><![CDATA[
Dears all;<br><br>I am using this trivia script - <a href="https://pastebin.com/RK6hRWPD" class="postlink">https://pastebin.com/RK6hRWPD</a> - I want to modify it, such that it will be On and Off on a schedule. Like 2 hours on, and 1 hour off.<br><br>Anybody can help?<br><br>Thanks in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12749">mondino</a> — Thu Nov 23, 2023 7:22 am</p><hr />
]]></content>
	</entry>
	</feed>
