This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Obtain and write data from a notice

Old posts that have not been replied to for several years.
Locked
A
Axeon

Obtain and write data from a notice

Post by Axeon »

I run an eggdrop and iroffer bot, but in the most recent version of Iroffer (b05), they decided to get rid of the .xdcc log file, so I can't display my bot's packlisting via the internet.

I had an idea to get the feature back though. Basically, I am trying to write a script that every 5 minutes sends a PRIVMSG to the bot, and then when it obtains the notices, it stores them in a file.

Unfortunately, I can't even get the bot to message correctly. Here is an example of my code so far.

set channel "#point-blank"
set botname "Canti-sama"

bind time - "?0 * * * *" getxdcc
bind time - "?5 * * * *" getxdcc

proc getxdcc {n h handle ch te} {
global channel botname
foreach chan $channel {
utimer 5 {putserv "PRIVMSG $botname :xdcc list"}
}
}


If anyone can also offer ideas as to how to code the file storage part, it would be appreciated.
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

check your docu for bind raw - NOTICE example bind to #?* for a packet
XplaiN but think of me as stupid
Locked