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

	<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>2002-04-25T19:35:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2002-04-25T19:35:00-04:00</updated>

		<published>2002-04-25T19:35:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6443#p6443</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6443#p6443"/>
		<title type="html"><![CDATA[Action Trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6443#p6443"><![CDATA[
read the tcl manual for the command 'string' (specifically 'string match', and 'string tolower'). Also tcl doesnt use () in its if constucts like that, use {}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Thu Apr 25, 2002 7:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-04-25T19:18:00-04:00</updated>

		<published>2002-04-25T19:18:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6441#p6441</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6441#p6441"/>
		<title type="html"><![CDATA[Action Trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6441#p6441"><![CDATA[
I'm working on a script that will be triggered by a particular action in a channel, however I have NO scripting skill whatsoever. I have managed to piece together what I THINK may work, but I'd like someone to check it out if that's at all possible.<br><br>----- Script Begins ------<br><br>bind ctcp - "ACTION" bind:slap<br><br>proc bind:slap {nick uh hand dest kw arg} {<br>  if {[isbotnick $dest]} {<br>    return<br>  }<br>  if ($arg =~ /slaps ZeemBot/i) {<br>    if ($nick =~ /qgz/i) {<br>      if ($arg =~ /harder/i) {<br>        puthelp "PRIVMSG $dest :oh yeah $nick, that's the way I like it!"<br>      }<br>      else {<br>        puthelp "PRIVMSG $dest :oh yeah baby, harder!"<br>      }<br>    }<br>    else {<br>      puthelp "PRIVMSG $dest :01ACTION nut-punches $nick01"<br>    }<br>  }<br>}<br>}<br><br>----- Script Ends ------<br><br>Basically, anyone who slaps the bot and DOESN'T have qgz in their name will get a nutpunch, whereas if they have qgz in their name the bot will respond accordingly. if they have qgz in their name AND harder is in the action from the user, the bot responds with "That's the way I like it". I would also like all the triggers to be case insensitive.<br><br>Any help/input would be greatly appreciated for this first time poster <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br><br>Thanks<br><br>&lt;font size=-1&gt;[ This Message was edited by: Hazim on 2002-04-25 17:18 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Thu Apr 25, 2002 7:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
