This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Simple responder for eggdrop

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
User avatar
agathodaimon
Voice
Posts: 29
Joined: Sun Aug 21, 2005 12:33 pm

Simple responder for eggdrop

Post by agathodaimon »

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 :)
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind msgm - * IAmABot

proc IAmABot {nick args} {
 puthelp "PRIVMSG $nick :I'm a bot."
}
User avatar
agathodaimon
Voice
Posts: 29
Joined: Sun Aug 21, 2005 12:33 pm

oh ya :)

Post by agathodaimon »

now..it works perfectly :)
and i tiny script to make it answer on the channels when somebody writes his name ..
thanks alot :)
User avatar
agathodaimon
Voice
Posts: 29
Joined: Sun Aug 21, 2005 12:33 pm

Post by agathodaimon »

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 :D
dont laugh :)
but...how do i make it include the nicku too?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

use bind pubm instead of pub in order to be able to use wildcards in the mask.
f
fredvil
Voice
Posts: 21
Joined: Thu Dec 01, 2005 9:16 pm

Post by fredvil »

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
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

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: Select all

 tag when posting logs, code
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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.
Post Reply