# Channels where we allow use:
set iwschans "#mychan #chan2 #etc"
# domain for webpage:
set iwsdom "myweb.domain.com"
# path for putting the webpage on the remote site (this directory must exist before running this script.)
set iwspath "/home/myweb/some/path"
# login name:password for the remote website
set iwslogin "mylogin:password"
# path and filename for generating/storing webpage locally
set iwsfile "/home/mybot/data/iws.html"
# user's permission flag required for adding themselves to the webstats page
set iwsuserperm "f|f"
# admin permission for adding/deleting other users from the webstats page
set iwsadminperm "n|n"
# update interval - if set to 0, immediately update webpage whenever any user's status changes, otherwise set this
# to the number of minutes to wait between updating and uploading a new status page.
set iwsupdate 0
Ohh I should mention, I pretty much despise html so the actual html will be minimal. I'll put in a config option for a header, and will just use normal fonts/colors elsewhere. If anyone has ideas for adding html formatting or css sheets, that would be nice =)
I'd probably do something similar to what bwbar does..
Just output an image/unformatted textfile, and let webpages include it using SSI-includes, php, cgi, perl, etc.
Does depend on such features being implemented on the web-server, but on the other hand makes it very flexible for the user to implement.
Maybe include a couple of examples on how to include it in a webpage with various methods?
My suggestion would be to skip any and all html-coding/formatting, and just output some plain text saying "$nick!$uhost ($handle): Status - $status $msg", the suggesting users create their own html-file that includes your tiny textfile
The advantage of this solution is any and all formatting information is separated from your tcl:et, making it alittle easier for the user/webdesigner to adapt the appearance of the page. Downside would be that you'd have to use a webserver with SSI, php, cgi or such enabled..
rosc2112 wrote:Gotcha, I'll make that an option, to either produce plain text, or the rudimentary html file.
and for server-side notification, you might want to consider now already ubiquitous WATCH command, instead of ISON (and check for WATCH support via VERSION and 005 numeric reply)
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use
Hmm I didn't even think of that.. I was going to just use the join/part/quit binds, and do a periodic whois to check away status (and also have an optional command to set 'away/back' manually in the script.)
# bind join
# bind part
# bind sign
# bind kick
# bind nick
There's already a config option for which channels to use the commands in, I can make the script monitor only those channels as well (or make it an optional list of channels to monitor.) So, basically, if you're not in one of those channels, you're marked "offline"
Would be helpful Jii92 would chime in here on what options they want
actually periodic WHOIS is not recommended as it's usually more severely rate-limited than ISON and a potential cause of the bot flooding itself out due to exceeded sendq; WATCH is preferable to both of these (needless to say, none will work if the user is +i and not on bot's channels)
naturally, if that guy wants channel monitoring only, the above is irrelevant
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use
Im sorry of my bad english if someone understanded me wrong.
I just want that i can put my irc status to my blog which displays my status in irc. (not everyone in one channel, only me or somebody else, if somebody understanded me wrong)
It could check my online status every 2-10 minutes, and generate html file.
Ohh I was just looking for ideas for features to add to the script. The main part of the script is pretty simple, so I figured I'd beef it up some and give people more options.
Just a bump to let you know I will be working on this script, but probably not til after the new year. I have a lot going on at the moment with the holidays.