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 

MegaHAL: Replying to nicknames?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming
View previous topic :: View next topic  
Author Message
Zeyra
Voice


Joined: 27 Dec 2009
Posts: 11

PostPosted: Tue Mar 09, 2010 2:04 pm    Post subject: MegaHAL: Replying to nicknames? Reply with quote

Is there some file in the configuration folder where I can add Nicknames that the bot will consider as if its names was said?

I.E making a bot called "Gingerbreadsnap" reply to sentences with "GingerB" in them?
Back to top
View user's profile Send private message
Sane
Voice


Joined: 17 Nov 2013
Posts: 15
Location: #kl-channel@Rizon.net

PostPosted: Sun Nov 17, 2013 12:55 am    Post subject: Reply with quote

Zeyra wrote:
Is there some file in the configuration folder where I can add Nicknames that the bot will consider as if its names was said?

I.E making a bot called "Gingerbreadsnap" reply to sentences with "GingerB" in them?


Yes, there is a way. To achieve this you need to be using the 'megahal.tcl' script (load it in your eggdrop *.conf file with 'source scripts/megahal.tcl') . In it there is a section that allows you to set other response keywords besides the botnick.

To achieve this, edit the megahal.tcl script and add the following to ' set responsekeywords "" ':
Code:
# Which keywords besides the botnick should be responded to (use space delimited list)
# Examples can include alternative bot nicknames, people's names, special words like hello, music, etc
set responsekeywords "gingerb"

It will respond to its original nick no matter what CaSe You USE, the same applies to the response keyword(s)/pseudonym.
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 -> Modules & Programming 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