| View previous topic :: View next topic |
| Author |
Message |
AudiAddict Voice
Joined: 28 Aug 2007 Posts: 11
|
Posted: Fri Nov 02, 2007 4:24 am Post subject: Spreedsheat lookup + Bot trigger script |
|
|
I'm looking for two scripts which work with the latest version of eggdrop
- We have some excel sheets (*.xls) is there a simple way of programming a bot to lookup data from these spreadsheets?
So if I type !reference referencenumber it would lookup a reference number in that excel sheet and post the data in that field?
Also, I'm trying to find a script which simply replies to certain words which are said by users.
if a user for example says test the bot would see that and say hey why are you testing?
I tried the script mc_respond it does exactly that, only it doesn't work with the latest eggdrop version it seems. It loads ok, no errors, but nothing happends when I try to add a word/trigger. |
|
| Back to top |
|
 |
smash Halfop
Joined: 31 Jul 2006 Posts: 45
|
Posted: Fri Nov 02, 2007 8:43 am Post subject: |
|
|
| Code: | proc pub_test {nick uhost handle chan args} {
global phrases botnick channel
set outputiz [lindex $phrases [rand [llength $phrases]]]
putserv "PRIVMSG $chan : $outputiz"
putlog "<<$nick>> !$handle! $botnick..."
}
bind pubm - "% *test*" pub_test
set phrases {
"hey why are you testing? "
} |
_________________ quakenet #fraguk www.fraguk.com
hosting 113 scripts @ this time! |
|
| Back to top |
|
 |
|