summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xchat/can/I/have/a/kitteh?/_2
-rwxr-xr-xchat/chat.sh15
-rwxr-xr-xchat/easter/_2
-rwxr-xr-xchat/easter/bunny/_2
-rwxr-xr-xchat/you/_2
-rwxr-xr-xchat/you/are/_2
l---------chat/you/are/stupid.1
-rwxr-xr-xchat/you/are/stupid/_2
-rwxr-xr-xchat/you/have/unread/!messages/_2
l---------chat/you/suck.1
-rwxr-xr-xchat/you/suck/_2
-rwxr-xr-xchat/you/there/_2
l---------chat/you/there?/_1
-rw-r--r--files/cmd_out0
-rw-r--r--files/sh_out0
-rw-r--r--scripts/cowsay.lua61
-rw-r--r--scripts/hardreset4
-rw-r--r--scripts/lamba2
-rw-r--r--scripts/savealias3
-rw-r--r--scripts/shell3
-rw-r--r--scripts/startup_crasher1
-rwxr-xr-xscripts/subseg1
-rwxr-xr-xscripts/subseg.sh35
23 files changed, 144 insertions, 2 deletions
diff --git a/chat/can/I/have/a/kitteh?/_ b/chat/can/I/have/a/kitteh?/_
new file mode 100755
index 0000000..8923afc
--- /dev/null
+++ b/chat/can/I/have/a/kitteh?/_
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo "fuck you bot. that's not what I meant."
diff --git a/chat/chat.sh b/chat/chat.sh
new file mode 100755
index 0000000..f203228
--- /dev/null
+++ b/chat/chat.sh
@@ -0,0 +1,15 @@
+#!/usr/pkg/bin/perl
+chdir("/home/segfault/chat");
+my $sentence="";
+my $i=0;
+@words=split(/ /,join(" ",@ARGV));
+foreach(@words) {
+ if(!chdir($_)) {
+ $args=join(" ",@words[$i .. $#words]);
+ $args =~ s/'/'\\''/g;
+ system("./_ '" . $args . "'\n");
+ exit;
+ }
+ $i++;
+}
+system("./_");
diff --git a/chat/easter/_ b/chat/easter/_
new file mode 100755
index 0000000..2266584
--- /dev/null
+++ b/chat/easter/_
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo derp
diff --git a/chat/easter/bunny/_ b/chat/easter/bunny/_
new file mode 100755
index 0000000..2fd1f2f
--- /dev/null
+++ b/chat/easter/bunny/_
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo dafuq
diff --git a/chat/you/_ b/chat/you/_
new file mode 100755
index 0000000..435c185
--- /dev/null
+++ b/chat/you/_
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo "no. you $*"
diff --git a/chat/you/are/_ b/chat/you/are/_
new file mode 100755
index 0000000..0416abe
--- /dev/null
+++ b/chat/you/are/_
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo "no, you $*"
diff --git a/chat/you/are/stupid. b/chat/you/are/stupid.
new file mode 120000
index 0000000..7f1bada
--- /dev/null
+++ b/chat/you/are/stupid.
@@ -0,0 +1 @@
+stupid \ No newline at end of file
diff --git a/chat/you/are/stupid/_ b/chat/you/are/stupid/_
new file mode 100755
index 0000000..ccc9373
--- /dev/null
+++ b/chat/you/are/stupid/_
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo "I'm smarter than the average bot. Fuck you."
diff --git a/chat/you/have/unread/!messages/_ b/chat/you/have/unread/!messages/_
new file mode 100755
index 0000000..a478415
--- /dev/null
+++ b/chat/you/have/unread/!messages/_
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo "!messages"
diff --git a/chat/you/suck. b/chat/you/suck.
new file mode 120000
index 0000000..fdb7235
--- /dev/null
+++ b/chat/you/suck.
@@ -0,0 +1 @@
+suck \ No newline at end of file
diff --git a/chat/you/suck/_ b/chat/you/suck/_
new file mode 100755
index 0000000..4e498a5
--- /dev/null
+++ b/chat/you/suck/_
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo "you're mother."
diff --git a/chat/you/there/_ b/chat/you/there/_
new file mode 100755
index 0000000..eb05097
--- /dev/null
+++ b/chat/you/there/_
@@ -0,0 +1,2 @@
+#!/bin/sh
+printf "\x01ACTION is totally here\x01\n"
diff --git a/chat/you/there?/_ b/chat/you/there?/_
new file mode 120000
index 0000000..94e5e30
--- /dev/null
+++ b/chat/you/there?/_
@@ -0,0 +1 @@
+../there/_ \ No newline at end of file
diff --git a/files/cmd_out b/files/cmd_out
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/files/cmd_out
diff --git a/files/sh_out b/files/sh_out
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/files/sh_out
diff --git a/scripts/cowsay.lua b/scripts/cowsay.lua
new file mode 100644
index 0000000..6f0588e
--- /dev/null
+++ b/scripts/cowsay.lua
@@ -0,0 +1,61 @@
+
+-- my drawing
+function ascii_nerd( name )
+ local s = ""
+ s = s .. [[
+
+\ | | /
+| o o |
+ \ O /
+ | |
+]]
+ local l = string.len(name)
+ for i=1,l+4 do s = s .. "+" end
+ s = s .. "\n| " .. name .. " |\n"
+ for i=1,l+4 do s = s .. "+" end
+ return s
+end
+
+--from beej.us
+function ascii_goat( text )
+ local s = ""
+ s = s .. [[ )_)
+ ___|oo) ]]
+ s = s .. text .. "\n"
+ s = s .. [['| |\_|
+ |||| #
+ ````]]
+ return s
+end
+
+--http://ascii.co.uk/art/shoot
+function ascii_shoot( name )
+ local s = ""
+ if name == nil then name = "" else
+ name = "("..name..")" end
+ s = s .. [[
+ O
+ <\==- - - - - - - ---
+ ./ \ _/\_\O ]] .. name .. [[
+]]
+ return s
+end
+
+function ascii_lurker( name )
+end
+
+function ascii_hunt( name )
+end
+
+function ascii_pc( pccmd )
+end
+
+for k,v in ipairs(arg) do
+ if v == "nerd" then
+ print( ascii_nerd( arg[k+1] ) )
+ elseif v == "goat" then
+ print( ascii_goat( arg[k+1] ) )
+ elseif v == "shoot" then
+ print( ascii_shoot( arg[k+1] ) )
+ end
+end
diff --git a/scripts/hardreset b/scripts/hardreset
new file mode 100644
index 0000000..735eb0c
--- /dev/null
+++ b/scripts/hardreset
@@ -0,0 +1,4 @@
+!untail /home/segfault/files/cmd_out
+!c cat /home/segfault/files/cmd_out > /dev/null
+!leettail 56/home/segfault/files/cmd_out
+!reset
diff --git a/scripts/lamba b/scripts/lamba
deleted file mode 100644
index 20a7b24..0000000
--- a/scripts/lamba
+++ /dev/null
@@ -1,2 +0,0 @@
-!lamba !alias !tmp %s
-!tmp
diff --git a/scripts/savealias b/scripts/savealias
new file mode 100644
index 0000000..f41dd51
--- /dev/null
+++ b/scripts/savealias
@@ -0,0 +1,3 @@
+ !unsavealias %s
+!leetappend /home/segfault/files/useraliases 10 !alias %s
+!say alias saved.
diff --git a/scripts/shell b/scripts/shell
new file mode 100644
index 0000000..28db4ee
--- /dev/null
+++ b/scripts/shell
@@ -0,0 +1,3 @@
+!more
+!changetail %~/files/sh_out %f 56
+!leetappend %~/files/sh_in 10 %s
diff --git a/scripts/startup_crasher b/scripts/startup_crasher
new file mode 100644
index 0000000..e52f30d
--- /dev/null
+++ b/scripts/startup_crasher
@@ -0,0 +1 @@
+!leettail 01/services/segfault-link/files/rawlog
diff --git a/scripts/subseg b/scripts/subseg
new file mode 100755
index 0000000..c8c597b
--- /dev/null
+++ b/scripts/subseg
@@ -0,0 +1 @@
+!ec ~/scripts/subseg.sh %s
diff --git a/scripts/subseg.sh b/scripts/subseg.sh
new file mode 100755
index 0000000..27ba0e1
--- /dev/null
+++ b/scripts/subseg.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+if [ "_$1" == "_" ];then
+ echo '!say usage: !subseg server port'
+ echo '!say No SSL support yet. open an ssl tunnel yourself. :P'
+ exit 1
+else
+ export segserver=$1
+fi
+if [ "_$2" == "_" ];then
+ export segport=6667
+else
+ export segport=$2
+fi
+if [ "_$3" == "_" ];then
+ export 'segchan=#default'
+else
+ export "segchan=$3"
+fi
+export seghome=/home/segfault/subseg/$$
+mkdir -p $seghome
+mkdir $seghome/scripts
+echo '!rawrecord 1' >> $seghome/scripts/prestartup
+echo '!nick subseg' >> $seghome/scripts/prestartup
+echo '!raw user ss ss ss :ss' >> $seghome/scripts/prestartup
+
+echo '!raw join '"$segchan" >> $seghome/scripts/startup
+echo '!leettail 02'"$segchan"':'$seghome/files/eval_in >> $seghome/scripts/startup
+mkdir -p $seghome/files
+touch $seghome/files/eval_in
+touch $seghome/files/rawlog
+echo '!say check it. tailing in 5 seconds...'$$
+segfault 2>&1 >/dev/null &
+sleep 5
+echo '!leettail 08#cmd:'$seghome/files/rawlog
+echo '!alias !tellsub'$$' !leetappend '$seghome'/files/eval_in 10 %s'