summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlookshe <lookshe@fumuga.com>2014-03-13 17:26:03 +0100
committerlookshe <lookshe@fumuga.com>2014-03-13 17:26:03 +0100
commitdecb6e9f94257391a37bef67694266cfd75e3424 (patch)
tree4a5c2226f8867fd560707e99058ff5281879385f
parent3bc9de5a3c00144e24b4bbc04f43c174b5303a6a (diff)
add !pastebin command
-rw-r--r--wiki.tcl6
1 files changed, 6 insertions, 0 deletions
diff --git a/wiki.tcl b/wiki.tcl
index 5135a92..6a9fc54 100644
--- a/wiki.tcl
+++ b/wiki.tcl
@@ -5,6 +5,8 @@ bind pub - !ewiki ewiki
#bind pub - !say say
bind pub - !mitsu mitsu
bind pub - !google say
+bind pub - !pastebin pastebin
+bind pub - !ezcrypt pastebin
proc say {nick host hand chan arg} {
# putserv "PRIVMSG $chan :$arg";
@@ -16,6 +18,10 @@ proc mitsu {nick host hand chan arg} {
# putserv "PRIVMSG $chan :das hier ist [string trimleft $chan #]";
}
+proc pastebin {nick host hand chan arg} {
+ putserv "PRIVMSG $chan :Längere Texte bitte nicht in den Chat kopieren! Benutze stattdessen https://ezcrypt.it/ : kopiere den Text in das große Textfeld, klicke auf \"Submit\" und teile uns die URL mit, auf die du automatisch weitergeleitet wurdest.";
+}
+
proc wiki {nick host hand chan arg} {
global do_wiki
if {[info exists do_wiki($nick:$chan)]} {