tomkay1985 wrote: Since I am not the born programmer, but able to adapt things once I learned them by an example. I am looking for some help in coding a script.
This script should always react, if a specific person in the channel writes a specific word.
Code: Select all
# October 16, 2014
# http://forum.egghelp.org/viewtopic.php?t=19807
bind pubm - "#eggdrop *testword*" watch_word
proc watch_word {nick uhost handle chan text} {
if {"$nick" eq "some_nick_here"} {
putserv "privmsg $chan :$text"
}
}
Don't know. Need more info from you. The script above will detect posts that you want. After that, you would have to clarify what "some data" is, and you would have to describe this database if we are to proceed further.Then from the same line of this word, i need to extract some data and then write this information in my database which already exists.
Is there any script available already which is able to parse bascially like what I need?
That sounds very interesting.tomkay1985 wrote: Thanks for your reply and your ideas. I now went a different way and created a webcrawler with PHP which simulates an IRC-user, joins the channel and listens to a specific user.
Eggdrop bots can work with mysql too, although I have never pursued it myself.This works quite well so far and I also could directly establish connection with my MySQL DB.
Perhaps.... so I need to wait for the GUI to be back online and then restart my script.
The maybe 100% solution still would be with the eggdrop.
dutch1918 wrote: ...
I would be interested in a shell script run by crontab and have it ping the bot say every 5 mins and if no response restart the bot