| View previous topic :: View next topic |
| Author |
Message |
agathodaimon Voice

Joined: 21 Aug 2005 Posts: 29
|
Posted: Sat Oct 22, 2005 11:47 am Post subject: Simple responder for eggdrop |
|
|
cheers
A little request i have..i'd like to have a script or find a script very simple ...in witch ..when someone adresses the bot ...the bot to answer with some simple answers.
I found lots of chatter scripts..bot..i dont want an AI bot..all i want is the bot to tell them that his a bot and thats all  |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Oct 22, 2005 12:24 pm Post subject: |
|
|
| Code: | bind msgm - * IAmABot
proc IAmABot {nick args} {
puthelp "PRIVMSG $nick :I'm a bot."
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
agathodaimon Voice

Joined: 21 Aug 2005 Posts: 29
|
Posted: Sat Oct 22, 2005 1:13 pm Post subject: oh ya :) |
|
|
now..it works perfectly
and i tiny script to make it answer on the channels when somebody writes his name ..
thanks alot  |
|
| Back to top |
|
 |
agathodaimon Voice

Joined: 21 Aug 2005 Posts: 29
|
Posted: Sat Oct 22, 2005 3:33 pm Post subject: |
|
|
bind pub - "oblio*" pub:oblio
proc pub:oblio { nick host hand chan text } {
putserv "PRIVMSG $chan :I'm bot leaveee the alone" }
putlog "\002Oblio Tcl\002 ."
my first script
dont laugh
but...how do i make it include the nicku too? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Oct 22, 2005 8:47 pm Post subject: |
|
|
use bind pubm instead of pub in order to be able to use wildcards in the mask. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
fredvil Voice
Joined: 01 Dec 2005 Posts: 21
|
Posted: Fri Sep 01, 2006 6:58 pm Post subject: |
|
|
Code:
bind msgm - * IAmABot
proc IAmABot {nick args} {
puthelp "PRIVMSG $nick :I'm a bot."
}
Hello sir_fz
from this example, how to make the bot respond only when certain words on the msg. like if the msg is:
<hannah23> hi pls visit http://www.yahoo.com
the bot only respond when the msg contains *http://*
thanks
fredvil |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Sep 01, 2006 8:26 pm Post subject: |
|
|
if you need a script that scans for and catches private (and public) spammers, use xchannel _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Fri Sep 01, 2006 9:57 pm Post subject: |
|
|
| fredvil wrote: |
the bot only respond when the msg contains *http://*
|
There are several tinyurl scripts in the archives that would probably be a good example/template script to look at. |
|
| Back to top |
|
 |
|