egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Simple responder for eggdrop

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
agathodaimon
Voice


Joined: 21 Aug 2005
Posts: 29

PostPosted: Sat Oct 22, 2005 11:47 am    Post subject: Simple responder for eggdrop Reply with quote

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 Smile
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Oct 22, 2005 12:24 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
agathodaimon
Voice


Joined: 21 Aug 2005
Posts: 29

PostPosted: Sat Oct 22, 2005 1:13 pm    Post subject: oh ya :) Reply with quote

now..it works perfectly Smile
and i tiny script to make it answer on the channels when somebody writes his name ..
thanks alot Smile
Back to top
View user's profile Send private message
agathodaimon
Voice


Joined: 21 Aug 2005
Posts: 29

PostPosted: Sat Oct 22, 2005 3:33 pm    Post subject: Reply with quote

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 Very Happy
dont laugh Smile
but...how do i make it include the nicku too?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Oct 22, 2005 8:47 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
fredvil
Voice


Joined: 01 Dec 2005
Posts: 21

PostPosted: Fri Sep 01, 2006 6:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Sep 01, 2006 8:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Sep 01, 2006 9:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber