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.

Script which returnes a message in the Query

Old posts that have not been replied to for several years.
Locked
R
Recoilmaster
Voice
Posts: 12
Joined: Tue Mar 11, 2003 1:22 pm

Script which returnes a message in the Query

Post by Recoilmaster »

Hi !

Iam searching a Script which response a Message if someone Query the Bot. Did someone know one ?

Thx for Help

Bye Keule
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

Post by ReaLz »

uhmm..

Code: Select all

set responce "Hi, how are you?"

bing msgm - "*" msgm_res

proc msgm_res {nick host hand args} {
putserv "PRIVMSG $nick :$responce"
return 1
}
«A fantastic spaghetti is a spaghetti that does not exist»
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

you forgot to make it global...

Code: Select all

proc msgm_res {nick host hand args} { 
putserv "PRIVMSG $nick :$::responce" 
return 1 
}
Elen sila lúmenn' omentielvo
R
Recoilmaster
Voice
Posts: 12
Joined: Tue Mar 11, 2003 1:22 pm

Post by Recoilmaster »

Thx :D
d
detonated
Voice
Posts: 16
Joined: Sat Mar 13, 2004 3:10 am

Post by detonated »

hmm but that will make the bot reply continuosly. how to make the bot just stop after 1 line. cos i just want the bot to reply "I'm a bot. Don't msg me."

thanks. :)
Locked