Is it possible to use macro to send data to my DB? I have a macro I created that logs guild breaks but I don't know how to send the data to my DB. I can't even create a simple command to show the result on the bot using subroutine. Can anyone give me some hints or guidance?
automacro Garden {
console /\[GM\] s+\[(.+)\] guild occupied the \[(Garden of Heaven)\] Agit./
call {
$Garden = $.lastMatch1
write($Garden)
}
}
sub write {
print "" //no idea how to do this
echo "" //no idea how to do this
}
Thanks message() work perfectly. I'm having a bit of a problem connecting to the DB though, probably because I don't know where should I put "use DBI;"?
Right now I'm just printing my output to a text file that looks like this
Ofc i get the params from other macros. I use this to debug loads of them. Though I can t use Linux (see my post on the fro-forum :-/) anymore, this works in Windows as well.