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

	<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>2007-09-24T14:47:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[BigSmoke]]></name></author>
		<updated>2007-09-24T13:07:49-04:00</updated>

		<published>2007-09-24T13:07:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76203#p76203</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76203#p76203"/>
		<title type="html"><![CDATA[Request: Events on website mesaged by bot on irc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76203#p76203"><![CDATA[
Thank you very very very much!<br><br>it worked man I am reallly happy thanks allot! I love you ^^<br><br>but one last question, how can I color that text?<br><br>or make it <strong class="text-strong">&lt;b&gt; &lt;/b&gt;</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8840">BigSmoke</a> — Mon Sep 24, 2007 1:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[br00]]></name></author>
		<updated>2007-09-24T14:47:59-04:00</updated>

		<published>2007-09-24T10:32:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76201#p76201</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76201#p76201"/>
		<title type="html"><![CDATA[Request: Events on website mesaged by bot on irc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76201#p76201"><![CDATA[
i had a similar requirement, needed bot to say in irc when a certain procedure was called on a site, here's something i found to deal with it, edited and commented so you can hopefully make it fit<div class="codebox"><p>Code: </p><pre><code>// where you have some sql that 'kills' the user, set $username below as that user$username = $arr['user']; //or whatever it's called, i'm sure you'll work it out$bot['ip'] = "xxx.xxx.xxx.xxx"; // your bots ip$bot['port'] = "xxxx"; // listen port set in the tcl below$bot['botpasswd'] = "pass set in tcl script below"; // password set in the tcl below$bot['botmsg'] = "$username just died";$fp = fsockopen($bot['ip'], $bot['port'], $errno, $errstr, 40);if($fp){    fputs($fp, $bot['botpasswd'] . " " . $bot['botmsg'] . "\n");    sleep(10);    fclose($fp);}</code></pre></div>that code needs to go in the webpage after the query 'kills' the user, then when it happens it sends a msg to the bot<br><br><br>now here's the tcl to get the message...<div class="codebox"><p>Code: </p><pre><code># following port must be open in your shell and same as set in the phpset listenport "someporthere"# pass must be same as set in the phpset password "somepasswordhere"listen $listenport script botlistenproc botlisten {idx} {    control $idx botlisten2}proc botlisten2 {idx args} {set chan "#channeltosendto"    set args [join $args]    set password1 [lindex [split $args] 0]    set message [join [lrange [split $args] 1 end]]if {$message != ""} {putquick "PRIVMSG $chan :$message"}}</code></pre></div>hopefully that shouldn't need much tweaking to get working<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7892">br00</a> — Mon Sep 24, 2007 10:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigSmoke]]></name></author>
		<updated>2007-09-24T09:12:10-04:00</updated>

		<published>2007-09-24T09:12:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76200#p76200</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76200#p76200"/>
		<title type="html"><![CDATA[Request: Events on website mesaged by bot on irc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76200#p76200"><![CDATA[
Hello,<br><br>We have an Online maffia game and we want if someone dies the bot says on IRC: user bla has just got killed! <br><br>We already got something but its not good but its only the idea <br>hope you guys can help me<br>this is what we have: (This is maybe incorrect)<br><div class="codebox"><p>Code: </p><pre><code>set dbhost "bla" set dbuser "bla" set dbpass "bla" set dbname "bla" set db_handle [mysqlconnect -host $dbhost -user $dbuser -password $dbpass] mysqluse $db_handle $dbname set query [SELECT * FROM `[users]` WHERE `callonirc`='1' AND `deader`='1']foreach result $query {    #$result = mysql_fetch_object($query) ;   in PHPputquick "PRIVMSG #capone : $result-&gt;login has just died!"}</code></pre></div><br>If someone dies the row callonirc and deader will be updated to 1 and then the bot needs to say User: blaa has just died!<br><br>Thanks in Advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8840">BigSmoke</a> — Mon Sep 24, 2007 9:12 am</p><hr />
]]></content>
	</entry>
	</feed>
