summaryrefslogtreecommitdiffstats
path: root/eggdrop-pisg_mff.tcl
diff options
context:
space:
mode:
authorlookshe <lookshe@fumuga.com>2012-09-09 21:02:03 +0200
committerlookshe <lookshe@fumuga.com>2012-09-09 21:02:03 +0200
commit009a87ffad8d3ea804dba65aedef7fddec7aa6d2 (patch)
tree4225ac012adf5eecca15f81756f69a16922e383e /eggdrop-pisg_mff.tcl
parente92f4f4425e9afab798910880c146567c22898c8 (diff)
don't know what changed, but there's something ;-)
Diffstat (limited to 'eggdrop-pisg_mff.tcl')
-rw-r--r--eggdrop-pisg_mff.tcl47
1 files changed, 47 insertions, 0 deletions
diff --git a/eggdrop-pisg_mff.tcl b/eggdrop-pisg_mff.tcl
new file mode 100644
index 0000000..5311f3c
--- /dev/null
+++ b/eggdrop-pisg_mff.tcl
@@ -0,0 +1,47 @@
+#pisg.tcl v0.15 by HM2K - auto stats script for pisg (perl irc statistics generator)
+#based on a script by Arganan
+
+# WARNING - READ THIS
+#
+# If you use this script, PLEASE read the documentation about the "Silent"
+# option. If you get the message "an error occured: Pisg v0.67 - perl irc
+# statistics generator" in the channel, you are NOT running silent. Fix it.
+
+set pisgver "0.15"
+
+#Location of pisg execuitable perl script
+set pisgexe "/home/eggdrop/eggdrop/pisg/pisg"
+
+#URL of the generated stats
+set pisgurl "http://www.thehappy.de/~lookshe/pub/logs"
+
+#channel that the stats are generated for
+set pisgchan "#mitsu_caht_runde"
+
+#Users with these flags can operate this function
+set pisgflags "nm"
+
+#How often the stats will be updated in minutes, ie: 30 - stats will be updated every 30 minutes
+set pisgtime "1440"
+
+bind pub $pisgflags !stats pub:pisgcmd
+
+proc pub:pisgcmd {nick host hand chan arg} {
+ global pisgexe pisgurl pisgchan
+ append out "PRIVMSG $pisgchan :" ; if {[catch {exec $pisgexe} error]} { append out "$pisgexe an error occured: [string totitle $error]" } else { append out "Stats Updated: $pisgurl" }
+ # puthelp $out
+}
+
+proc pisgcmd_timer {} {
+ global pisgexe pisgurl pisgchan pisgtime
+ append out "PRIVMSG $pisgchan :" ; if {[catch {exec $pisgexe} error]} { append out "$pisgexe an error occured: [string totitle $error]" } else { append out "Stats Updated: $pisgurl" }
+ # puthelp $out
+ timer $pisgtime pisgcmd_timer
+}
+
+if {![info exists {pisgset}]} {
+ set pisgset 1
+ timer 2 pisgcmd_timer
+}
+
+putlog "pisg.tcl $pisgver loaded"