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

	<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>2012-07-28T15:22:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-07-28T15:22:49-04:00</updated>

		<published>2012-07-28T15:22:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99801#p99801</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99801#p99801"/>
		<title type="html"><![CDATA[add text to database from text on irc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99801#p99801"><![CDATA[
Thus, if the result mentioned in my previous post is 0, issue a new SQL-query with an INSERT command.<br>But honestly, given the number of posts/threads regarding mysql queries, I figured you had that part covered already.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jul 28, 2012 3:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2012-07-28T14:05:20-04:00</updated>

		<published>2012-07-28T14:05:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99800#p99800</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99800#p99800"/>
		<title type="html"><![CDATA[add text to database from text on irc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99800#p99800"><![CDATA[
Thanks for the reply!<br><br>Well you almost right (or i miss guided you, sorry)<br><br>The text thats written on channel should be stored in database, with a giving ending from a switch or some kind...<br><br>hope this clear it a little better<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Sat Jul 28, 2012 2:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-07-28T14:01:22-04:00</updated>

		<published>2012-07-28T14:01:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99799#p99799</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99799#p99799"/>
		<title type="html"><![CDATA[add text to database from text on irc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99799#p99799"><![CDATA[
So it's interpretaton 2:a then...<br><br>Use the pubm-binding to catch all channel chatter.<br>Extract the last word; possibly using split/lindex or regexp patterns?<br>Build an SQL-query using this word somewhat similar to this:<div class="codebox"><p>Code: </p><pre><code>set query "SELECT COUNT(*) FROM `database`.`table` WHERE `table`.`field` = '[mysql::escape $varHoldingTheWord]'"</code></pre></div>Execute the query and fetch the result.<br>If the result is larger then 0, there is atleast one match already present in the database, otherwise there was no matches.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jul 28, 2012 2:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2012-07-28T13:50:43-04:00</updated>

		<published>2012-07-28T13:50:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99798#p99798</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99798#p99798"/>
		<title type="html"><![CDATA[add text to database from text on irc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99798#p99798"><![CDATA[
1). You'd like some action to be triggered if a spoken line of text (in a channel or private msg?) ends with a certain word? <br><br>- Channel<br><br>2). You'd like some action to be triggered if a spoken line of text (in a channel or private msg?), whose last word is not yet present in some kind of database : <br><br>- Yes action on the ending off a text like : -html / -php (just example)<br><br>2:a). An SQL-database such as MySQL, PostgreSQL, MSQL, etc. <br><br>- Mysql (have mysqltcl<br><br><br>2:b). A simple Tcl-list or dict.<br><br>- What ? dont understand<br><br>I have replied to the questions as good as i could <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Sat Jul 28, 2012 1:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-07-28T11:52:37-04:00</updated>

		<published>2012-07-28T11:52:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99795#p99795</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99795#p99795"/>
		<title type="html"><![CDATA[add text to database from text on irc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99795#p99795"><![CDATA[
I'll try my best to interpret your query, but to be honest, I'm not even sure I'm remotely close to what you are really asking about...<br><br>1). You'd like some action to be triggered if a spoken line of text (in a channel or private msg?) ends with a certain word?<br><br>2). You'd like some action to be triggered if a spoken line of text (in a channel or private msg?), whose last word is not yet present in some kind of database;<br>2:a). An SQL-database such as MySQL, PostgreSQL, MSQL, etc.<br>2:b). A simple Tcl-list or dict.<br>2:c). A textfile on the filesystem (using some format like csv).<br><br>3). ??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jul 28, 2012 11:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2012-07-28T08:30:59-04:00</updated>

		<published>2012-07-28T08:30:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99794#p99794</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99794#p99794"/>
		<title type="html"><![CDATA[add text to database from text on irc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99794#p99794"><![CDATA[
Hey!<br><br>How do i get tcl to add specific text to database if it has i unique ending<br><br>Note: there is no trigger "!"<br><br>like : <div class="codebox"><p>Code: </p><pre><code>some.text.here-endning1some.text.here-endning2</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Sat Jul 28, 2012 8:30 am</p><hr />
]]></content>
	</entry>
	</feed>
