diff options
author | epochqwert <epoch@hacking.allowed.org> | 2018-12-19 19:33:37 +0000 |
---|---|---|
committer | epochqwert <epoch@hacking.allowed.org> | 2018-12-19 19:33:37 +0000 |
commit | 36f7747780ea5f459e17f34c42d646abff6e6dbc (patch) | |
tree | a72a0c3f6fa918323b37bff7da047c08a8bdb9a4 /scripts | |
parent | ff822dd2295faa2e3fce3fe2bde391c5a1ad53e7 (diff) | |
download | segfault_home-36f7747780ea5f459e17f34c42d646abff6e6dbc.tar.gz segfault_home-36f7747780ea5f459e17f34c42d646abff6e6dbc.zip |
updated scripts, and xchg stuff added
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/command | 2 | ||||
-rw-r--r-- | scripts/cowsay.lua | 26 | ||||
-rwxr-xr-x | scripts/drink.sh | 5 | ||||
-rw-r--r-- | scripts/listtofile | 4 | ||||
-rw-r--r-- | scripts/prestartup | 14 | ||||
-rw-r--r-- | scripts/shell | 2 | ||||
-rw-r--r-- | scripts/startup | 39 |
7 files changed, 64 insertions, 28 deletions
diff --git a/scripts/command b/scripts/command index 538a09e..aa8b861 100644 --- a/scripts/command +++ b/scripts/command @@ -1,3 +1,3 @@ -!istaillocked %~/files/cmd_out Try using !more +!istaillocked %~/files/cmd_out Try using !more or !hardreset if you want to discard the output. !changetail %~/files/cmd_out %f 56 !leetappend %~/files/cmd_in 10 %s diff --git a/scripts/cowsay.lua b/scripts/cowsay.lua index 6f0588e..5d9a80d 100644 --- a/scripts/cowsay.lua +++ b/scripts/cowsay.lua @@ -50,6 +50,27 @@ end function ascii_pc( pccmd ) end +function ascii_dickbutt( name ) + local s = "" + if name == nul then name = "" else + name = "("..name..")\n" end + s = s .. [[ + ___ +/ \ <--- ]] .. name .. [[ +|o o| +| > | +|__/| /\ +| |_ || +| | \|| +| J )_) + \____/ + | + =' +]] + return s +end + +v="help" for k,v in ipairs(arg) do if v == "nerd" then print( ascii_nerd( arg[k+1] ) ) @@ -57,5 +78,10 @@ for k,v in ipairs(arg) do print( ascii_goat( arg[k+1] ) ) elseif v == "shoot" then print( ascii_shoot( arg[k+1] ) ) + elseif v == "dickbutt" then + print( ascii_dickbutt( arg[k+1] ) ) end end +--if v == "help" then +-- print("usage: sayp [nerd|goat|shoot|dickbutt] [name]") +--end diff --git a/scripts/drink.sh b/scripts/drink.sh new file mode 100755 index 0000000..b36382e --- /dev/null +++ b/scripts/drink.sh @@ -0,0 +1,5 @@ +#!/bin/bash +export SHELL=/bin/bash +$(exit $[$RANDOM % 50]) && printf "\x01ACTION sees that it is %s passed the hour and takes a shot of tripwire.\x01\n" "$(date +%M)" > /home/segfault/files/default +#$(exit $[$RANDOM % 50]) && printf "\x01ACTION sees that it is %s passed the hour and shoots a few ccs of heroin.\x01\n" "$(date +%M)" > /home/segfault/files/default +exit 0 diff --git a/scripts/listtofile b/scripts/listtofile new file mode 100644 index 0000000..48b3fce --- /dev/null +++ b/scripts/listtofile @@ -0,0 +1,4 @@ +!alias !323 !alias !332 _ +!alias !332 !leetappend /tmp/channels 10 %s +!c > /tmp/channels +!raw LIST diff --git a/scripts/prestartup b/scripts/prestartup index 16054f0..396673a 100644 --- a/scripts/prestartup +++ b/scripts/prestartup @@ -1,12 +1,12 @@ Set important server message handlers first. 004 is where we know we're connected and can start joining shit. -!alias !eval !leettail 150%s -!alias !004 !eval %~/scripts/startup +!alias !Eval !leettail 022%s +!alias !004 !Eval %~/scripts/startup 436 is nick collision. -!alias !433 !nick %m%r%r%r -!alias !436 !nick %m%r%r%r +!alias !433 !nick %m%r +!alias !436 !nick %m%r !nick SegFault !raw user epoch epoch epoch :epoch - - !raw PASS wrongpassword - !raw SERVER nope.segfault.allowed.org :testing +!alias !Evalhome !leettail 022%~/%s +!linelimit a +!Evalhome files/useraliases diff --git a/scripts/shell b/scripts/shell index 28db4ee..7383125 100644 --- a/scripts/shell +++ b/scripts/shell @@ -1,3 +1,3 @@ -!more +!istaillocked %~/files/sh_out Try using !shmore !changetail %~/files/sh_out %f 56 !leetappend %~/files/sh_in 10 %s diff --git a/scripts/startup b/scripts/startup index 21ed886..d88e5d2 100644 --- a/scripts/startup +++ b/scripts/startup @@ -1,23 +1,24 @@ !linelimit 10000 !raw oper g0d WAFFLEIRON +lambda !raw mode %m +F !raw join #cmd -!alias !eval !leettail 150%%s -!alias !rc !eval %~/scripts/rawcommand %%s -!alias !ec !eval %~/scripts/evalcommand %%s -!alias !c !eval %~/scripts/command %%s -!alias !sh !eval %~/scripts/shell %%s -!leettail 56#cmd:%~/files/cmd_out -!leettail 56#cmd:%~/files/sh_out +!alias !eval !leettail 150%s +!alias !rc !eval %~/scripts/rawcommand %s +!alias !ec !eval %~/scripts/evalcommand %s +!alias !c !eval /home/segfault/scripts/command %s +!alias !sh !eval %~/scripts/shell %s +!alias !pipetailhome !leettail 56#default:%~/%s +!alias !pipetailhome2 !leettail 56#cmd:%~/%s +!alias !tail !leettail 08%s +!alias !tailhome !tail #default:%~/%s +#!tail files/cmd_out +#!tail files/sh_out +!pipetailhome files/cmd_out +!pipetailhome files/sh_out +!pipetailhome files/default +!leettail 56#cmd:/home/segfault/files/PMepoch +!changetail /home/segfault/files/PMepoch epoch 56 +!leettail 18#default:/home/segfault/files/eval +!pipetailhome2 files/cmd !raw join #default - -!alias !tail !leettail 08%%s - -#top one joins too. - !alias !taildir !ec find %%s -type f | while read i;do c='#'$(basename $(dirname "$i"))'-'$(basename "$i");echo '!leettail 08'${c}':'"$i";echo '!raw JOIN '$c;echo '!raw TOPIC '$c' :'$c;done - !alias !taildir !ec find %%s -type f | while read i;do c='#'$(basename $(dirname "$i"))'-'$(basename "$i");echo '!leettail 08'${c}':'"$i";echo '!raw TOPIC '$c' :'$c;done -#!alias !taildir !c find %%s -type f | while read i;do c='#'$(basename $(dirname "$i"))'-'$(basename "$i");echo '!leettail 08'${c}':'"$i";echo '!raw TOPIC '$c' :'$c;done > /service/log2irc/scripts/taildir;echo '!lobotomy' >> /service/log2irc/scripts/taildir -!alias !taildir !c find %%s -type f | while read i;do c='#'$(basename $(dirname "$i"))'-'$(basename "$i");echo '!leettail 08'${c}':'"$i";echo '!raw TOPIC '$c' :'$c;done > /service/log2irc/scripts/taildir -!taildir /var/log/toirc/ -!tail #default:%~/files/default - -!eval %~/files/useraliases +!raw join #xchg |