Need help with a bot reddit / irc ---------------------------------------------------------------------- [deleted] · 2014-09-10 16:51 Is there a bot I can configure to respond with certain messages? For example: Respond "Hi!" everytime someone says "Hi!", or respond "Good!" everytime someone says "How are you?". Just a simple chatbot. *Edit: Is there also a way for a bot to automatically say something every 5 minutes? Like an announcement to all channel users.* ---------------------------------------------------------------------- Pteraspidomorphi · 2014-09-10 20:29 Are you willing to script a bit or you want a ready made solution? ---------------------------------------------------------------------- [deleted] · 2014-09-10 21:23 [deleted] ---------------------------------------------------------------------- Pteraspidomorphi · 2014-09-10 22:01 Then I'm afraid I don't know. The thing is, what you want is so basic, any static solution is almost redundant. You can script it in eggdrop in less than 10 lines (more lines if you add more responses). Hopefully someone else can help you. ---------------------------------------------------------------------- [deleted] · 2014-09-10 22:21 [deleted] ---------------------------------------------------------------------- Pteraspidomorphi · 2014-09-10 22:37 Well, for eggdrop check out this example: http://www.niemueller.de/software/eggdrop/eliza/ If you open the .tcl you'll see it's very small. All this does is forward chat to eliza and reply with the response. Eggdrop extensions work by registering event handlers with 'bind'. The 'putserv' command sends a message back to the server (PRIVMSG is the IRC message type for normal messages) Here's the description for 'pubm' events: (6) PUBM (stackable) bind pubm procname Description: just like MSGM, except it's triggered by things said on a channel instead of things /msg'd to the bot. The mask is matched against the channel name followed by the text and can contain wildcards. Also, if a line triggers a PUB bind, it will not trigger a PUBM bind. So you want something like this: bind pubm - "#mychannel *" respond proc respond {nick host handle channel text} { if {$text == "Hi"} { putserv "PRIVMSG $channel :Hello $nick, how are you?" } ...etc... } You load the script at the end of eggdrop.conf . ---------------------------------------------------------------------- Pteraspidomorphi · 2014-09-10 22:47 To say something every 5 minutes try adding this to your script: proc annoying {} { putserv "PRIVMSG #mychannel :Are we there yet?" } utimer 300 annoying