Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [script]
- n0=on *:JOIN:#mini-missions: {
- n1= ;noop $tip(User Joining, New User in $chan $+ :, $nick, 10, $mircexe, 11, window -ra $safe2($chan))
- n2= ;beep 2 1
- n3=}
- n4=alias -l safe2 {
- n5= bset -tc &a 1 $1 | return $!regsubex(safe, $bvar(&a,1-) ,/(\d+)(?: |$)/g,$chr(\1))
- n6=}
- n7=
- n8=on 500,543:TEXT:*:#: { halt }
- n9=on 500,543:ACTION:*:#: { halt }
- n10=on *:LOAD: {
- n11= echo -at Loaded reply script
- n12= echo -at No new variables added, all are global
- n13=}
- n14=on *:UNLOAD: {
- n15= echo -at Unloaded reply script
- n16= echo -at No variables unset, all are global
- n17=}
- n18=on *:ACTION:*:#: {
- n19= if ($me == %owner && !$mybots($nick) && $nick !isin $read(lists\bots.txt,w, $nick) && $nick !isin $read(lists\userbots.txt,w, $nick)) {
- n20= quote $1-
- n21= }
- n22= reply $chan $nick $1-
- n23=
- n24= if (%knownwordsmode == 1) {
- n25= if ($me == %owner) {
- n26= learn $remove($strip($1-),$chr(44),$chr(46),$chr(63),$chr(34),$chr(39))
- n27= }
- n28= elseif ($nick == %owner && $me == %bot1) {
- n29= learn $remove($strip($1-),$chr(44),$chr(46),$chr(63),$chr(34),$chr(39))
- n30= }
- n31= elseif ($nick == %owner && %bot1 !ison $1 && $me == %bot2) {
- n32= learn $remove($strip($1-),$chr(44),$chr(46),$chr(63),$chr(34),$chr(39))
- n33= }
- n34= }
- n35=}
- n36=on ^*:NOTICE:*invited*into the channel*:#: {
- n37= haltdef
- n38=}
- n39=on *:NOTICE:*:#: {
- n40= reply $chan $nick $1-
- n41= if (%knownwordsmode == 1) {
- n42= if ($me == %owner) {
- n43= learn $remove($strip($1-),$chr(44),$chr(46),$chr(63),$chr(34),$chr(39))
- n44= }
- n45= elseif ($nick == %owner && $me == %bot1) {
- n46= learn $remove($strip($1-),$chr(44),$chr(46),$chr(63),$chr(34),$chr(39))
- n47= }
- n48= elseif ($nick == %owner && %bot1 !ison $1 && $me == %bot2) {
- n49= learn $remove($strip($1-),$chr(44),$chr(46),$chr(63),$chr(34),$chr(39))
- n50= }
- n51= }
- n52= if ($me == %owner && $nick != NickServ && $nick != ChanServ && $nick != Global && $nick != HostServ && $nick != MemoServ && !$mybots($nick) && $nick != BotServ && irc.tl !isin $nick) {
- n53= echo -st $nick noticed you in $chan
- n54= }
- n55=}
- n56=on *:NOTICE:*:?: {
- n57= if ($mybots($me) && $nick != NickServ && $nick != ChanServ && $nick != Global && $nick != HostServ && $me != %owner) {
- n58= scon %owner_s window -m @ERROR
- n59= beep
- n60= scon %owner_s aline @ERROR 4ERROR:2 $nick sent "7 $+ $1- $+ " at6 $time (notice at $me $+ )
- n61= }
- n62= elseif ($me == %owner && $nick != NickServ && $nick != ChanServ && $nick != Global && $nick != HostServ && $nick != MemoServ && !$mybots($nick) && $nick != BotServ) {
- n63= echo -st $nick noticed you
- n64= }
- n65=}
- n66=on *:TEXT:*:#: {
- n67= reply $chan $nick $1-
- n68=
- n69= if (%knownwordsmode == 1) {
- n70= if ($me == %owner) {
- n71= if ($MMBots($nick) && $5-6 != has killed) {
- n72= learn $remove($strip($1-),$chr(44),$chr(46),$chr(63),$chr(34),$chr(39))
- n73= }
- n74= elseif (!$MMBots($nick)) {
- n75= learn $remove($strip($1-),$chr(44),$chr(46),$chr(63),$chr(34),$chr(39))
- n76= }
- n77= }
- n78= elseif ($nick == %owner && $me == %bot1) {
- n79= learn $remove($strip($1-),$chr(44),$chr(46),$chr(63),$chr(34),$chr(39))
- n80= }
- n81= elseif ($nick == %owner && %bot1 !ison $1 && $me == %bot2) {
- n82= learn $remove($strip($1-),$chr(44),$chr(46),$chr(63),$chr(34),$chr(39))
- n83= }
- n84= }
- n85= if ($nick == [MM]IKKE && %owner != [MM]IKKE) { ghost }
- n86= if ($nick == IKKE1 && %bot1 != IKKE1) { ghostbot1 }
- n87= if ($nick == IKKE2 && %bot2 != IKKE2) { ghostbot2 }
- n88=
- n89=
- n90= /*
- n91= if ($nick == IKKE3 && %bot3 != IKKE3) { ghostbot3 }
- n92= if ($nick == IKKE4 && %bot4 != IKKE4) { ghostbot4 }
- n93= */
- n94= if ($me == %owner && !$mybots($nick) && $nick !isin $read(lists\bots.txt,w, $nick) && $nick !isin $read(lists\userbots.txt,w, $nick) && $left($1,1) != $chr(33)) {
- n95= quote $1-
- n96= }
- n97=}
- n98=on *:TEXT:*:?: {
- n99= if ($me == %owner && !$mybots($nick)) {
- n100= write "PMs\ $+ $replace($nick,$chr(124),_) $+ .txt" $chr(91) $+ $date at $time $+ $chr(93) $nick $+ : $1-
- n101= }
- n102= reply PM $nick $1-
- n103= if (%knownwordsmode == 1) {
- n104= if ($me == %owner) {
- n105= if ($MMBots($nick) && $5-6 != has killed) {
- n106= learn $remove($strip($1-),$chr(44),$chr(46),$chr(63),$chr(34),$chr(39))
- n107= }
- n108= elseif (!$MMBots($nick)) {
- n109= learn $remove($strip($1-),$chr(44),$chr(46),$chr(63),$chr(34),$chr(39))
- n110= }
- n111= }
- n112= elseif ($nick == %owner && $me == %bot1) { learn $remove($strip($1-),$chr(44),$chr(46),$chr(63),$chr(34),$chr(39)) }
- n113= elseif ($nick == %owner && %bot1 !ison $1 && $me == %bot2) { learn $remove($strip($1-),$chr(44),$chr(46),$chr(63),$chr(34),$chr(39)) }
- n114= }
- n115=}
- n116=on *:ACTION:*:?: {
- n117= if ($me == %owner && !$mybots($nick)) {
- n118= write "PMs\ $+ $replace($nick,$chr(124),_) $+ .txt" $chr(91) $+ $date at $time $+ $chr(93) $nick $+ : $1-
- n119= }
- n120=}
- n121=
- n122=
- n123=alias -l quote {
- n124= ;Syntax: <text>
- n125= ;Usage: Internally used to add a quote to the random quotes engine
- n126= write quotes\quotes $+ %quotefile $+ .txt $1-
- n127= inc %quotesamount
- n128= if ($calc(%quotesamount / 1000) == $round($calc(%quotesamount / 1000) , 0)) { inc %quotefile }
- n129=}
- n130=
- n131=
- n132=alias -l reply {
- n133= ;Syntax: <channel|PM> <nick> <text>
- n134= ;Usage: Internally used by the command echo engine to define whether it's a command or not. If so, send it to the echo channel
- n135=
- n136= if ($me == %bot1 && $chan_log($1)) {
- n137= inc_msgs $1
- n138= writeini channels\ $+ $1 $+ .ini stats lastmsg $gmt
- n139= }
- n140= elseif ($2 == %bot1 && $me == %bot2 && $chan_log($1)) {
- n141= inc_msgs $1
- n142= writeini channels\ $+ $1 $+ .ini stats lastmsg $gmt
- n143= }
- n144=
- n145= if ($1 != PM && $3 != ! && !$mybots($2) && ($3 == $read(lists\cmdlist.txt,w,$3 $+ *) || $3-4 == $read(lists\cmdlist.txt,w,$3 $+ *) || $3-5 == $read(lists\cmdlist.txt,w,$3 $+ *))) {
- n146= if ($me == %bot1 && $chan_log($1)) {
- n147= writeini channels\ $+ $1 $+ .ini stats lastcmd $gmt
- n148= }
- n149=
- n150= set -n %command.echo $3-
- n151= if ($me == %bot1) {
- n152= {
- n153= if ($chr(126) isin $nick($1 , $2).pnick) {
- n154= scon %logbot msg #[MM]IKKE.echo at6 $1 1<4~9 $+ $2 $+ 1> $eval(%command.echo,0)
- n155= }
- n156= elseif ($chr(38) isin $nick($1 , $2).pnick) {
- n157= scon %logbot msg #[MM]IKKE.echo at6 $1 1<4&9 $+ $2 $+ 1> $eval(%command.echo,0)
- n158= }
- n159= elseif ($chr(64) isin $nick($1 , $2).pnick) {
- n160= scon %logbot msg #[MM]IKKE.echo at6 $1 1<4@9 $+ $2 $+ 1> $eval(%command.echo,0)
- n161= }
- n162= elseif ($chr(37) isin $nick($1 , $2).pnick) {
- n163= scon %logbot msg #[MM]IKKE.echo at6 $1 1<4 $+ $chr(37) $+ 9 $+ $2 $+ 1> $eval(%command.echo,0)
- n164= }
- n165= elseif ($chr(43) isin $nick($1 , $2).pnick) {
- n166= scon %logbot msg #[MM]IKKE.echo at6 $1 1<4+9 $+ $2 $+ 1> $eval(%command.echo,0)
- n167= }
- n168= else {
- n169= scon %logbot msg #[MM]IKKE.echo at6 $1 1<49 $+ $2 $+ 1> $eval(%command.echo,0)
- n170= }
- n171= }
- n172= {
- n173= if (%logbot == %bot1_s) {
- n174= if (%bot2 ison #[MM]IKKE.echo) { set %logbot %bot2_s }
- n175= }
- n176= elseif (%logbot == %bot2_s) {
- n177= if (%bot1 ison #[MM]IKKE.echo) { set %logbot %bot1_s }
- n178= }
- n179= else { .notice %owner 4ERROR:2 Error changing logging bot }
- n180= }
- n181= }
- n182= elseif (%bot1 !ison $1 && $me == %bot2) {
- n183= {
- n184= if ($chr(126) isin $nick($1 , $2).pnick) {
- n185= scon %logbot msg #[MM]IKKE.echo at6 $1 1<4~9 $+ $2 $+ 1> $eval(%command.echo,0)
- n186= }
- n187= elseif ($chr(38) isin $nick($1 , $2).pnick) {
- n188= scon %logbot msg #[MM]IKKE.echo at6 $1 1<4&9 $+ $2 $+ 1> $eval(%command.echo,0)
- n189= }
- n190= elseif ($chr(64) isin $nick($1 , $2).pnick) {
- n191= scon %logbot msg #[MM]IKKE.echo at6 $1 1<4@9 $+ $2 $+ 1> $eval(%command.echo,0)
- n192= }
- n193= elseif ($chr(37) isin $nick($1 , $2).pnick) {
- n194= scon %logbot msg #[MM]IKKE.echo at6 $1 1<4 $+ $chr(37) $+ 9 $+ $2 $+ 1> $eval(%command.echo,0)
- n195= }
- n196= elseif ($chr(43) isin $nick($1 , $2).pnick) {
- n197= scon %logbot msg #[MM]IKKE.echo at6 $1 1<4+9 $+ $2 $+ 1> $eval(%command.echo,0)
- n198= }
- n199= else {
- n200= scon %logbot msg #[MM]IKKE.echo at6 $1 1<49 $+ $2 $+ 1> $eval(%command.echo,0)
- n201= }
- n202= }
- n203= {
- n204= if (%logbot == %bot1_s) {
- n205= if (%bot2 ison #[MM]IKKE.echo) { set %logbot %bot2_s }
- n206= }
- n207= elseif (%logbot == %bot2_s) {
- n208= if (%bot1 ison #[MM]IKKE.echo) { set %logbot %bot1_s }
- n209= }
- n210=
- n211= else { .notice %owner 4ERROR:2 Error changing logging bot }
- n212= }
- n213= }
- n214= unset %command.echo
- n215= }
- n216=}
- n217=
- n218=alias -l learn {
- n219= ;Syntax: <text>
- n220= ;Usage: Internally used to learn words (if enabled). Loops through each single word (until it doesn't exist anymore), checks for signs and then saves when not known already
- n221= var %i = 1
- n222= while ([ $chr(36) $+ [ %i ] ]) {
- n223= var %j = 1
- n224= var %len = $len([ $chr(36) $+ [ %i ] ])
- n225= var %word = $lower([ $chr(36) $+ [ %i ] ])
- n226= while (%j <= %len && $asc($mid(%word,%j,1)) isnum 97-122) {
- n227= if (%j == %len) {
- n228= learnword2 [ $chr(36) $+ [ %i ] ]
- n229= }
- n230= inc %j
- n231= }
- n232=
- n233= inc %i
- n234= }
- n235= inc %scannedwords %i
- n236=
- n237= halt
- n238= :error
- n239= scon %owner_s window @ERROR
- n240= beep
- n241= scon %owner_s aline @ERROR 4ERROR:1 Error learning "2 $+ $3- $+ 1". Error message:4 $error
- n242=}
- n243=alias -l learnword {
- n244= ;Syntax: <file> <word>
- n245= ;Usage: Internally used by the learning engine to add a word to the appropriate file. Also updates the general knowledge file and the other associated variables
- n246= if ($2 != $read("Dictionary\ $+ $1 $+ .txt",nw,$2)) {
- n247= write "Dictionary\ $+ $1 $+ .txt" $2
- n248= write Dictionary\Words $+ %knownwordsfile $+ .txt $2
- n249= inc %knownwordsamount
- n250= if ($calc(%knownwordsamount / 1000) == $round($calc(%knownwordsamount / 1000) , 0)) { inc %knownwordsfile }
- n251= }
- n252=}
- n253=alias -l learnword2 {
- n254= ;Syntax: <word>
- n255= ;Usage: Internally used by the learning engine to define in which file the word should be stored
- n256=
- n257= ;If the length is smaller than 3
- n258= if ($len($1) < 3) {
- n259= learnword Small $1
- n260= }
- n261=
- n262= ;Check for normal words
- n263=
- n264= elseif ($exists("Dictionary\ $+ $left($1,3) $+ .txt")) {
- n265= ;disables sites and UGP guests
- n266= if (http != $left($1,4) && $mid($1,9,6) != _Guest) {
- n267= learnword $left($1,3) $1
- n268= }
- n269= }
- n270=
- n271= ;all other words
- n272= else {
- n273= learnword Others $1
- n274= }
- n275=}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement