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

	<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>2005-05-29T11:04:29-04:00</updated>

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

		<entry>
		<author><name><![CDATA[honken]]></name></author>
		<updated>2005-05-29T11:04:29-04:00</updated>

		<published>2005-05-29T11:04:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49935#p49935</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49935#p49935"/>
		<title type="html"><![CDATA[MySQL kick info script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49935#p49935"><![CDATA[
Hi.<br><br>Well let's start it like this.<br>I don't know much about tcl scripting (yet anyway).<br><br>But if there is someone who likes to help me out with a cool script i would be realy glad.<br><br>SCRIPT IDEA:<br><br>A kick script thats only operarational by ops (@).<br>And that logs the kick info in a mysql databas.<br><br>like this.<br>-- start example --<div class="codebox"><p>Code: </p><pre><code>&lt;@oper&gt; !kick nick You be gone!** Bot has kicked nick from #channel (You be gone!)** nick joins #channel&lt;nick&gt; !who&lt;Bot&gt; [nick] you got kicked by [oper] at [timestamp] reason: [You be gone!] kick id: [ID]&lt;nick&gt; !kick oper Stop it** Bot has kicked nick from #channel (Stop it)** nick joins #channel&lt;nick&gt; !who&lt;Bot&gt; [nick] you got kicked by [nick] at [timestamp] reason: [Stop it] kick id: [ID]&lt;nick&gt; !stat nick&lt;Bot&gt; [nick] has been kicked [2] times</code></pre></div>-- end example --<br><br>Can be a lot of work to do this script. <br>Most important thing in this is the non-@ block and that the info is entered in to a sql db.<br><br>I think i have an good idea on who to do this is just that i need some help on the functions for the public commands and how to bind them to work list and how to get the @-er to be active.<br>Since command: !stat &lt;nick&gt; will be accessable by all and !who but not !kick.<br><div class="codebox"><p>Code: </p><pre><code>set sql(host) "localhost"set sql(username) "username"set sql(password) "password"set sql(database) "kickeddb"set sql(socket) "/var/run/mysqld/mysqld.sock"set sql_connect [mysqlconnect -host $sql(host) -user $sql(username) -password $sql(password) -db $sql(database) -socket $sql(socket)]bind pub - !kick kick:nickbind pub - !who UNSURE since its just one commandbind pub - !stats stats:nickproc kick:nick { blha blha }proc who:pub { blha lbha }proc stats:nick { blaha blha }</code></pre></div>Thats what i think it will look like for now anyway?<br>Any help at all will be nice.[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6287">honken</a> — Sun May 29, 2005 11:04 am</p><hr />
]]></content>
	</entry>
	</feed>
