Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [script]
- n0=on 500,543:TEXT:*:#: { halt }
- n1=on *:START: {
- n2= set %getping 0
- n3=}
- n4=on *:LOAD: {
- n5= set %getping 0
- n6= echo -at Loaded commands which trigger one bot
- n7= echo -at Set getping to 0, default
- n8=}
- n9=on *:UNLOAD: {
- n10= unset %getping
- n11= echo -at Unloaded commands which trigger one bot
- n12= echo -at Unset getping
- n13=}
- n14=
- n15=on *:TEXT:!do*:#:{
- n16= if ($nick == %owner && $1 == !do) {
- n17= if ($me == $2) {
- n18= if ($3 == $null) { msg $chan 4ERROR:1 Usage: !do <botnick> <commands> }
- n19= else {
- n20= $eval($3-,2)
- n21= }
- n22= }
- n23= elseif (!$mybots($2) && $me == %bot1) { msg $chan 4ERROR:1 Usage: !do <botnick> <commands> }
- n24= }
- n25= elseif ($me == $2 && $me != %owner && $1 == !do) { msg $chan 4ERROR:1 You are not authorized to use this command }
- n26= elseif ($2 == $null && $me == %bot1 && $1 == !do) { scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorized to use this command }
- n27=}
- n28=on *:TEXT:!botban*:#[MM]IKKE, #[MM]IKKE.echo: {
- n29= if ($me == %bot1 && $nick == %owner && $1 == !botban) {
- n30= if (!$2) { scon $bot_say($chan) msg $chan 4ERROR:1 !botban <nick> }
- n31= else {
- n32= msg $chan You have been banned on all my channels and from all bot commands
- n33= mode $chan -ohv $2 $2 $2
- n34= mode $chan +bb $address($2,0) $2
- n35= mode $chan -ee $2 * $+ $2 $+ *!*@*
- n36= cs access #[MM]IKKE del $2
- n37= kick $chan $2-
- n38= cs akick #[MM]IKKE add $2-
- n39= cs akick #[MM]IKKE.echo add $2-
- n40= .auser 543 $address($2,4)
- n41= .auser 543 $2 $+ !*@*
- n42= }
- n43= }
- n44= elseif ($me == %bot1 && $isowner($chan,$nick) && $1 == !botban) {
- n45= if (!$2) { scon $bot_say($chan) msg $chan 4ERROR:1 !botban <nick> }
- n46= elseif ($chr(126) !isin $nick($chan , $2).pnick) {
- n47= msg $chan You have been banned on all my channels and from all bot commands
- n48= mode $chan -ohv $2 $2 $2
- n49= mode $chan +bb $address($2,0) $2
- n50= mode $chan -ee $2 * $+ $2 $+ *!*@*
- n51= cs access #[MM]IKKE del $2
- n52= kick $chan $2-
- n53= cs akick #[MM]IKKE add $2-
- n54= cs akick #[MM]IKKE.echo add $2-
- n55= .auser 543 $address($2,4)
- n56= .auser 543 $2 $+ !*@*
- n57= scon %owner_s window -m @Management
- n58= beep
- n59= scon %owner_s aline @Management 4Botban:2 $nick 1banned $2 at2 $time
- n60= }
- n61= else {
- n62= scon $bot_say($chan) msg $chan 4ERROR:1 You cannot ban other channel owners!
- n63= }
- n64= }
- n65= elseif ($me == %bot1 && $nick == %owner && $1 == !botban) {
- n66= scon $bot_say($chan) msg $chan 4ERROR:1 I do not have the required status
- n67= }
- n68= elseif ($me == %bot1 && $1 == !botban) {
- n69= scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorized to use this command
- n70= }
- n71=}
- n72=on *:TEXT:!botunban*:#: {
- n73= if ($me == %bot1 && $nick == %owner && $me isop $chan && $1 == !botunban) {
- n74= if (!$2) { scon $bot_say($chan) msg $chan 4ERROR:1 !botunban <nick> }
- n75= elseif ($level($address($2,5)) == 543) {
- n76= mode $chan -bbb $address($2,0) $2 $address($2,2)
- n77= cs akick #[MM]IKKE.echo del $2-
- n78= .ruser 543 $address($2,4)
- n79= .ruser 543 $2 $+ !*@*
- n80= msg $chan Unbanned:9 $2
- n81= }
- n82= else { scon $bot_say($chan) msg $chan 4ERROR:1 $2 isn't on the ban list }
- n83= }
- n84= elseif ($me == %bot1 && $nick == %owner && $1 == !botunban) {
- n85= scon $bot_say($chan) msg $chan 4ERROR:1 I do not have the required status
- n86= }
- n87= elseif ($me == %bot1 && $1 == !botunban) {
- n88= scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorized to use this command
- n89= }
- n90=}
- n91=on *:TEXT:!ignore *:#: {
- n92= if ($me == %bot1) {
- n93= if ($nick == %owner) {
- n94= .auser 500 $address($2,4)
- n95= .auser 500 $2 $+ !*@*
- n96= scon $bot_say($chan) msg $chan Ignoring " $+ $2 $+ " from now on
- n97= }
- n98= else {
- n99= scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorized to use this command
- n100= }
- n101= }
- n102=}
- n103=on *:TEXT:!unignore*:#: {
- n104= if ($me == %bot1 && $nick == %owner && $1 == !unignore) {
- n105= if (!$2) { scon $bot_say($chan) msg $chan 4ERROR:1 !unignore <nick> }
- n106= elseif ($level($address($2,5)) == 500) {
- n107= .ruser 500 $address($2,4)
- n108= .ruser 500 $2 $+ !*@*
- n109= msg $chan Stopped ignoring:9 $2
- n110= }
- n111= else { scon $bot_say($chan) msg $chan 4ERROR:1 $2 isn't on the ignore list }
- n112= }
- n113= elseif ($me == %bot1 && $1 == !unignore) {
- n114= scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorized to use this command
- n115= }
- n116=}
- n117=on *:TEXT:!stfu*:#[MM]IKKE: {
- n118= if ($1 == !stfu && $me == %bot1 && $2 isnum) {
- n119= if ($2 <= 120 && $2 >= 1) {
- n120= if ($isowner($chan,$3)) {
- n121= scon $bot_say($chan) ban -u60 $chan * $+ $nick $+ *!*@*
- n122= scon $bot_say($chan) msg $chan Do not remove this ban or it'll be permanently
- n123= if ($isprotect($chan,$3)) {
- n124= scon $bot_say($chan) mode $chan -vhao $nick $nick $nick $nick
- n125= scon $bot_say($chan) msg $chan trying to bust $3 $+ ? eat this, 60secs mute :D
- n126= scon $bot_say($chan) .msg $3 $nick tried to stfu you :O at $time
- n127= scon $bot_say($chan) .timer 1 30 msg $chan You should be demoted, $nick :O maybe you will :-) oh btw, 30secs left :D
- n128= scon $bot_say($chan) .timer 1 60 mode $chan +vao $nick $nick $nick
- n129= }
- n130= else {
- n131= scon $bot_say($chan) mode $chan -vhao $nick $nick $nick $nick
- n132= scon $bot_say($chan) msg $chan trying to bust $3 $+ ? eat this, 60secs mute :D
- n133= scon $bot_say($chan) .msg $3 $nick tried to stfu you :O at $time
- n134= scon $bot_say($chan) .timer 1 30 msg $chan You should be demoted, $nick :O maybe you will :-) oh btw, 30secs left :D
- n135= scon $bot_say($chan) .timer 1 60 mode $chan +vo $nick $nick
- n136= }
- n137= }
- n138= elseif ($isprotect($chan,$3) && !$isowner($chan,$nick)) {
- n139= scon $bot_say($chan) ban -u30 $chan * $+ $nick $+ *!*@*
- n140= scon $bot_say($chan) msg $chan Do not remove this ban or it'll be permanently
- n141= if ($isprotect($chan,$nick)) {
- n142= scon $bot_say($chan) mode $chan -vhao $nick $nick $nick $nick
- n143= scon $bot_say($chan) msg $chan trying to bust $3 $+ ? eat this, 30secs mute :D
- n144= scon $bot_say($chan) .notice $3 $nick tried to stfu you :O at $time
- n145= scon $bot_say($chan) .timer 1 15 msg $chan You should be demoted, $nick :O maybe you will :-) oh btw, 15secs left :D
- n146= scon $bot_say($chan) .timer 1 30 mode $chan +vao $nick $nick $nick
- n147= }
- n148= else {
- n149= scon $bot_say($chan) mode $chan -vhao $nick $nick $nick $nick
- n150= scon $bot_say($chan) msg $chan trying to bust $3 $+ ? eat this, 30secs mute :D
- n151= scon $bot_say($chan) .notice $3 $nick tried to stfu you :O at $time
- n152= scon $bot_say($chan) .timer 1 15 msg $chan You should be demoted, $nick :O maybe you will :-) oh btw, 15secs left :D
- n153= scon $bot_say($chan) .timer 1 30 mode $chan +vo $nick $nick
- n154= }
- n155= }
- n156= elseif ($mybots($2) || $3 isin $read(lists\bots.txt,w, $3)) { scon $bot_say($chan) msg $chan 4ERROR:1 Invalid nickname }
- n157= elseif ($3 == $null) { scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !stfu <amount of time> <nick> }
- n158= else {
- n159= if ($3 ison $chan) {
- n160= scon $bot_say($chan) ban -u $+ $2 $chan * $+ $3 $+ *!*@*
- n161= scon $bot_say($chan) msg $chan Do not remove this ban or it'll be permanently
- n162= if ($isprotect($chan,$nick)) {
- n163= scon $bot_say($chan) mode $chan -vhao $3 $3 $3 $3
- n164= scon $bot_say($chan) .timer 1 $2 mode $chan +vao $3 $3 $3
- n165= }
- n166= elseif ($3 isop $chan) {
- n167= scon $bot_say($chan) mode $chan -vhao $3 $3 $3 $3
- n168= scon $bot_say($chan) .timer 1 $2 mode $chan +vo $3 $3
- n169= }
- n170= elseif ($3 ishop $chan) {
- n171= scon $bot_say($chan) mode $chan -vh $3 $3
- n172= scon $bot_say($chan) .timer 1 $2 mode $chan +vh $3 $3
- n173= }
- n174= elseif ($3 ison $chan) {
- n175= scon $bot_say($chan) mode $chan -v $3
- n176= scon $bot_say($chan) .timer 1 $2 mode $chan +v $3
- n177= }
- n178= }
- n179= else { scon $bot_say($chan) msg $chan 4ERROR:1 $3 isn't on the channel right now }
- n180= }
- n181= }
- n182= else { scon $bot_say($chan) msg $chan 4ERROR:1 $2 is not a legit amount of time <1-120> }
- n183= }
- n184= elseif ($me == %bot1 && $1 == !stfu) {
- n185= scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !stfu <time> <nick>
- n186= }
- n187=}
- n188=on *:TEXT:!botslap*:#: {
- n189= if ($nick == %owner && $1 == !botslap) {
- n190= if ($2) {
- n191= describe $chan slaps $nick($chan,$nick($chan,$2)) around a bit with a large trout 9[ $+ %slaps slaps $+ ]
- n192= inc %slaps
- n193= }
- n194= elseif ($me == %bot1) {
- n195= scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !botslap <nick>
- n196= }
- n197= }
- n198= elseif ($1 == !botslap) {
- n199= if ($me == %bot1) {
- n200= if ($2 ison $chan ) {
- n201= if ($nick == $2) {
- n202= scon $bot_say($chan) describe $chan doesn't slap $nick around a bit with a large trout 9[ $+ %slaps slaps $+ ]
- n203= inc %slaps
- n204= }
- n205= elseif ($2 == IKKE) {
- n206= scon $bot_say($chan) describe $chan slaps $nick around a bit with a large trout 9[ $+ %slaps slaps $+ ] 4[ERROR]
- n207= inc %slaps
- n208= }
- n209= elseif ($2 == %owner) {
- n210= scon $bot_say($chan) describe $chan slaps $nick around a bit with a large trout 9[ $+ %slaps slaps $+ ] 4[ERROR]
- n211= inc %slaps
- n212= }
- n213= elseif ($2 == %bot1) {
- n214= scon $bot_say($chan) msg $chan I don't slap myself, I'm not 0,1EMO
- n215= }
- n216= elseif ($mybots(2)) {
- n217= scon $bot_say($chan) msg $chan I don't slap my friends
- n218= }
- n219= else {
- n220= scon $bot_say($chan) describe $chan slaps $nick($chan,$nick($chan,$2)) around a bit with a large trout 9[ $+ %slaps slaps $+ ]
- n221= inc %slaps
- n222= }
- n223= }
- n224= elseif ($2 == $null) {
- n225= scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !botslap <nick>
- n226= }
- n227= else {
- n228= scon $bot_say($chan) msg $chan 4ERROR:1 $2 is not in the channel
- n229= }
- n230= }
- n231= }
- n232=}
- n233=on *:TEXT:!rape*:#: {
- n234= if ($me == %bot1 && $1 == !rape) {
- n235= if ($2 ison $chan) {
- n236= if ($nick == $2) {
- n237= scon $bot_say($chan) msg $chan 4ERROR:1 Go rape yourself with a dildo
- n238= }
- n239= elseif ($2 == %owner) {
- n240= scon $bot_say($chan) msg $chan 4ERROR:1 An error has occured. Go rape someone else
- n241= }
- n242= elseif ($mybots($2)) {
- n243= scon $bot_say($chan) describe $chan can't rape his friends 4[ERROR]
- n244= }
- n245= else {
- n246= var %adjective = $read(bot\adjectives.txt)
- n247= var %noun = $read(bot\nouns.txt)
- n248= scon $bot_say($chan) describe $chan rapes $nick($chan,$nick($chan,$2)) with $iif(($left(%adjective,1) == a || $left(%adjective,1) == e || $left(%adjective,1) == u || $left(%adjective,1) == i || $left(%adjective,1) == o) && $left(%adjective,2) != eu,an,a) %adjective %noun
- n249= }
- n250= }
- n251= elseif ($2 == $null) { scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !rape <nick> }
- n252= else { scon $bot_say($chan) msg $chan 4ERROR:1 $2 isn't a legit victim }
- n253= }
- n254=}
- n255=on *:TEXT:!cake*:#: {
- n256= if ($me == %bot1 && $1 == !cake) {
- n257= if ($2 ison $chan) {
- n258= if ($nick == $2) {
- n259= scon $bot_say($chan) msg $chan 4ERROR:1 Oh you greedy basterd!
- n260= }
- n261= elseif ($2 == $me) {
- n262= scon $bot_say($chan) msg $chan 4ERROR:1 WE HAZ ALL TEH CAKEZ ALREADY
- n263= }
- n264= else {
- n265= var %adjective = $read(bot\adjectives.txt)
- n266= var %noun = $read(bot\nouns.txt)
- n267= scon $bot_say($chan) describe $chan gives a cake to $nick($chan,$nick($chan,$2)) $+ . Tastes like $iif(($left(%adjective,1) == a || $left(%adjective,1) == e || $left(%adjective,1) == u || $left(%adjective,1) == i || $left(%adjective,1) == o) && $left(%adjective,2) != eu,an,a) %adjective %noun $+ !
- n268= }
- n269= }
- n270= elseif ($2 == $null) { scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !cake <nick> }
- n271= else { scon $bot_say($chan) msg $chan 4ERROR:1 $2 isn't on the channel }
- n272= }
- n273=}
- n274=on *:TEXT:!ping*:#: {
- n275= if ($me == %bot1 && $1 == !ping) {
- n276= if ($2 ison $chan) { scon $bot_say($chan) msg $chan 4ERROR:1 Invalid usage of the command }
- n277= elseif (%getping == 0) {
- n278= if ($left($2, 1) == - || $left($2,1) == $chr(47)) {
- n279= scon $bot_say($chan) msg $chan 4ERROR:1 Do not specify any parameters. Doing this repeatedly will get you banned from ALL commands.
- n280= scon %owner_s window -m @Management
- n281= beep
- n282= scon %owner_s aline @Management 4Abuse: $nick 1tried to abuse !ping in4 $chan 1at4 $time $+ 1. Full message:4 $1-
- n283= }
- n284= elseif ($2 == $null) { scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !ping <IP|website> }
- n285= else {
- n286= set %getping 1
- n287= if (.gov isin $2 || .de isin $2 || .us isin $2 || .ch isin $2 || .tk isin $2 || .org isin $2 || .com isin $2 || .bz isin $2 || .be isin $2 || .nl isin $2 || .net isin $2 || .co isin $2) {
- n288= scon $bot_say($chan) msg $chan Pinging website $2 $+ ...
- n289= }
- n290= elseif ($right($2 , 1) isnum) { scon $bot_say($chan) msg $chan Pinging IP $2 $+ ... }
- n291= elseif ($2 == localhost) { scon $bot_say($chan) msg $chan Pinging myself... }
- n292= else {
- n293= scon $bot_say($chan) msg $chan 4ERROR:1 Invalid format
- n294= set %getping 0
- n295= halt
- n296= }
- n297= run -n cmd.exe /c ping $2 > ping.txt
- n298= scon $bot_say($chan,15) .timer 1 10 getping $chan
- n299= }
- n300= }
- n301= else {
- n302= scon $bot_say($chan) msg $chan 4ERROR:1 Already pinging another IP.
- n303= }
- n304= }
- n305=}
- n306=alias -l getping {
- n307= ;Syntax: <channel>
- n308= ;Usage: Reads from the ping file and sends the readed data (translated) to the specified channel
- n309= if ($read(ping.txt, n, 3) == Time-out bij opdracht.) {
- n310= msg $1 4ERROR: Data Packets Lost (IP might be firewalled)
- n311= .timer 1 18 .remove ping.txt
- n312= .timer 1 19 set %getping 0
- n313= }
- n314= elseif (Controleer de naam en probeer het opnieuw. isin $read(ping.txt, n, 2)) {
- n315= msg $1 4ERROR: Hostname does not exist
- n316= .timer 1 1 .remove ping.txt
- n317= .timer 1 2 set %getping 0
- n318= }
- n319= elseif (De doelhost is niet bereikbaar isin $read(ping.txt, n, 3)) {
- n320= msg $1 4ERROR: Could not retrieve host
- n321= .timer 1 10 .remove ping.txt
- n322= .timer 1 11 set %getping 0
- n323= }
- n324= else {
- n325= msg $1 $replace($read(ping.txt, n, 8), ping-statistieken voor, Ping statistics for)
- n326= msg $1 $replace($read(ping.txt, n, 9), pakketten, Packets, verzonden, Sent, ontvangen, Recieved, verloren, Lost)
- n327= .timer 1 1 msg $1 $replace($read(ping.txt, n, 13), gemiddelde, Average)
- n328= .timer 1 2 .remove ping.txt
- n329= .timer 1 3 set %getping 0
- n330= }
- n331=}
- n332=
- n333=
- n334=on *:TEXT:!botsay*:#: {
- n335= if ($me == $2 && $me != %owner && $1 == !botsay) {
- n336= if ($nick == %owner) {
- n337= if ($3 != $null) {
- n338= msg $chan $3-
- n339= }
- n340= else { msg $chan 4ERROR:1 Usage: !botsay <botnick> <message> }
- n341= }
- n342= elseif ($nick ishop $chan || $nick isop $chan) {
- n343= if ($3 != $null) {
- n344= check $chan $3-
- n345= msg $chan $3-
- n346= }
- n347= else { msg $chan 4ERROR:1 Usage: !botsay <botnick> <message> }
- n348= }
- n349= else {
- n350= msg $chan 4ERROR:1 You are not authorized to use this command
- n351= }
- n352= }
- n353= elseif (!$mybots($2) && $me == %bot1 && $1 == !botsay) {
- n354= if ($2 == $null) { scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !botsay <botnick> <message> }
- n355= else { scon $bot_say($chan) msg $chan 4ERROR:1 $2 is not a bot }
- n356= }
- n357=}
- n358=on *:TEXT:!botsendmsgtochan*:#: {
- n359= if ($me == $3 && $me != %owner && $1 == !botsendmsgtochan) {
- n360= if ($nick isop $chan || $nick == %owner) {
- n361= if ($4 != $null) {
- n362= check $chan $4-
- n363= if ($2 == #sa-mp || $2 == #help || $2 == #operhelp) {
- n364= msg $chan ERROR:1 Trying to send a message to a blacklisted channel. Reported to my owner. Abuse will result in a demotion.
- n365= }
- n366= elseif ($me ison $2) {
- n367= if ($isowner(#[MM]IKKE,$nick)) {
- n368= msg $2 $4-
- n369= }
- n370= else {
- n371= msg $2 $4- --- message sent from 4 $+ $chan 1by 2 $+ $nick
- n372= }
- n373= }
- n374= elseif ($me ison $chr(35) $+ $2) {
- n375= if ($isowner(#[MM]IKKE,$nick)) {
- n376= msg $chr(35) $+ $2 $4-
- n377= }
- n378= else {
- n379= msg $chr(35) $+ $2 $4- --- message sent from 4 $+ $chan 1by 2 $+ $nick
- n380= }
- n381= }
- n382= elseif ($left($2,1) == $chr(35)) {
- n383= .join -n $2
- n384= .timer 1 2 msg $2 $4-
- n385= if ($isowner(#[MM]IKKE,$nick)) {
- n386= .timer 1 4 leave $2 plz
- n387= }
- n388= else {
- n389= .timer 1 4 leave $2 Message sent from 4 $+ $chan 1by 2 $+ $nick
- n390= }
- n391=
- n392= }
- n393= else {
- n394= .join -n $chr(35) $+ $2
- n395= .timer 1 2 msg $chr(35) $+ $2 $4-
- n396= if ($isowner(#[MM]IKKE,$nick)) {
- n397= .timer 1 4 leave $chr(35) $+ $2 plz
- n398= }
- n399= else {
- n400= .timer 1 4 leave $chr(35) $+ $2 Message sent from 4 $+ $chan 1by 2 $+ $nick
- n401= }
- n402=
- n403=
- n404= }
- n405= }
- n406= else { msg $chan 4ERROR:1 Usage: !botsendmsgtochan <channel> <botnick> <message> }
- n407= }
- n408= else {
- n409= msg $chan 4ERROR:1 You are not authorized to use this command
- n410= }
- n411= }
- n412= elseif (!$mybots($3) && $me == %bot1 && $1 == !botsendmsgtochan) {
- n413= if ($2 == $null) { scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !botsendmsgtochan <channel> <botnick> <message> }
- n414= elseif ($3 == $null) { scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !botsendmsgtochan <channel> <botnick> <message> }
- n415= else { scon $bot_say($chan) msg $chan 4ERROR:1 $3 is not a bot }
- n416= }
- n417=}
- n418=on *:TEXT:!botspam*:#: {
- n419= if ($me == $2 && $me != %owner && $1 == !botspam) {
- n420= if ($nick isop $chan || $nick == %owner) {
- n421= if ($3 <= 20 && $3 >= 1 && $4 != $null) {
- n422= check $chan $4-
- n423= if ($2 > 15) {
- n424= var %i = 1
- n425= while (%i <= $3 ) {
- n426= .timer 1 %i msg $chan $4-
- n427= inc %i
- n428= }
- n429= }
- n430= else { .timer $3 0.1 msg $chan $4- }
- n431= }
- n432= elseif ($3 == $null || $3 !isnum) { msg $chan 4ERROR:1 Usage: !botspam <botnick> <amount> <message> }
- n433= elseif ($4 == $null) { msg $chan 4ERROR:1 Usage: !botspam <botnick> <amount> <message> }
- n434= elseif ($3 isnum) { msg $chan 4ERROR:1 Invalid amount <1-20> | .timer 1 2 msg $chan Abusing will result in a demotion }
- n435= }
- n436= else {
- n437= msg $chan 4ERROR:1 You are not authorized to use this command
- n438= }
- n439= }
- n440= elseif (!$mybots($2) && $me == %bot1 && $1 == !botspam) {
- n441= if ($2 == $null || $2 isnum) { scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !botspam <botnick> <amount> <message> }
- n442= else { scon $bot_say($chan) msg $chan 4ERROR:1 $2 is not a bot }
- n443= }
- n444=}
- [aliases]
- n0=/addajoin {
- n1= ;Syntax: <channel>
- n2= ;Usage: Adds the specified channel to the main ajoin list file
- n3= if ($1 isin $read(lists\ajoinlist.txt,w,$1)) {
- n4= echo 4 -at ERROR:1 Channel is already in ajoin list!
- n5= }
- n6= else {
- n7= write lists\ajoinlist.txt $1
- n8= echo 2 -at Channel " $+ $1 $+ " added to ajoin list
- n9= ns ajoin add $1
- n10= }
- n11=}
- n12=/ajoin {
- n13= ;Syntax: none
- n14= ;Usage: joins all ajoin channels in the main ajoin list
- n15= if ($chan(0) >= 10) {
- n16= var %i = 1
- n17= while (%i <= $lines(lists\ajoinlist.txt)) {
- n18= if ($me !ison $read(lists\ajoinlist.txt, %i)) { join -n $read(lists\ajoinlist.txt, %i) }
- n19= inc %i
- n20= }
- n21= }
- n22= else {
- n23= .timer 1 5 ajoin
- n24= }
- n25=}
- n26=/ajoinlist {
- n27= ;Syntax: none
- n28= ;Usage: Adds entire ajoin list again
- n29= var %i = 1
- n30= while (%i <= $chan(0)) {
- n31= ;.timer 1 $calc(2* (%i -1)) ns ajoin add $chan(%i)
- n32= inc %i
- n33= }
- n34=}
- n35=/bot1addajoin {
- n36= ;Syntax: <channel>
- n37= ;Usage: Adds the channel to the personal ajoin list of the bot
- n38= if ($1 isin $read(lists\bot1ajoinlist.txt,w,$1)) {
- n39= msg $1 4ERROR:1 Channel is already in ajoin list
- n40= }
- n41= else {
- n42= write lists\bot1ajoinlist.txt $1
- n43= msg $1 Added " $+ $1 $+ " to the ajoin list
- n44= ns ajoin add $1
- n45= }
- n46=}
- n47=/bot1ajoin {
- n48= ;Syntax: none
- n49= ;Usage: joins all ajoin channels in the personal ajoin list of the bot
- n50= var %i = 1
- n51= while (%i <= $lines(lists\bot1ajoinlist.txt)) {
- n52= if ($me !ison $read(lists\bot1ajoinlist.txt, %i)) { join -n $read(lists\bot1ajoinlist.txt, %i) }
- n53= inc %i
- n54= }
- n55=}
- n56=/bot1delajoin {
- n57= ;Syntax: <channel>
- n58= ;Usage: deletes a channel out of the personal ajoin list of the bot
- n59= if ($1 isin $read(lists\bot1ajoinlist.txt,w,$1)) {
- n60= write -dl $+ $readn lists\bot1ajoinlist.txt
- n61= msg $1 Channel " $+ $1 $+ " deleted out of ajoin list
- n62= ns ajoin del $1
- n63= }
- n64= else {
- n65= msg $1 4ERROR:1 Channel is not in the ajoin list
- n66= }
- n67=}
- n68=/bot2addajoin {
- n69= ;Syntax: <channel>
- n70= ;Usage: Adds the channel to the personal ajoin list of the bot
- n71= if ($1 isin $read(lists\bot2ajoinlist.txt,w,$1)) {
- n72= msg $1 4ERROR:1 Channel is already in ajoin list
- n73= }
- n74= else {
- n75= write lists\bot2ajoinlist.txt $1
- n76= msg $1 Added " $+ $1 $+ " to the ajoin list
- n77= }
- n78=}
- n79=/bot2ajoin {
- n80= ;Syntax: none
- n81= ;Usage: joins all ajoin channels in the personal ajoin list of the bot
- n82= var %i = 1
- n83= while (%i <= $lines(lists\bot2ajoinlist.txt)) {
- n84= if ($me !ison $read(lists\bot2ajoinlist.txt, %i)) { join -n $read(lists\bot2ajoinlist.txt, %i) }
- n85= inc %i
- n86= }
- n87=}
- n88=/bot2delajoin {
- n89= ;Syntax: <channel>
- n90= ;Usage: deletes a channel out of the personal ajoin list of the bot
- n91= if ($1 isin $read(lists\bot2ajoinlist.txt,w,$1)) {
- n92= write -dl $+ $readn lists\bot2ajoinlist.txt
- n93= msg $1 Channel " $+ $1 $+ " deleted out of ajoin list
- n94= }
- n95= else {
- n96= msg $1 4ERROR:1 Channel is not in the ajoin list
- n97= ns ajoin del $1
- n98= }
- n99=}
- n100=/botsaddajoin {
- n101= ;Syntax: <channel>
- n102= ;Usage: Adds the specified channel to each bot's personal ajoin list
- n103= if ($me == %bot1) { bot1addajoin $1 }
- n104= elseif ($me == %bot2) { bot2addajoin $1 }
- n105=
- n106= /*
- n107= elseif ($me == %bot3) { bot3addajoin $1 }
- n108= elseif ($me == %bot4) { bot4addajoin $1 }
- n109= */
- n110=
- n111=}
- n112=/botsajoin {
- n113= ;Syntax: none
- n114= ;Usage: logs all bots in and joins all channels specified in all bot's personal ajoin lists. Needs to be triggered by each bot.
- n115= if ($chan(0) >= 10) {
- n116= if ($me == %bot1) { bot1ajoin }
- n117= elseif ($me == %bot2) { bot2ajoin }
- n118=
- n119= /*
- n120= elseif ($me == %bot3) { bot3ajoin }
- n121= elseif ($me == %bot4) { bot4ajoin }
- n122= */
- n123= }
- n124= else {
- n125= .timer 1 5 botsajoin
- n126= }
- n127=}
- n128=/botsajoinlist {
- n129= ;Syntax: none
- n130= ;Usage: Adds the ajoin list of the bots
- n131= var %i = 1
- n132= while (%i <= $chan(0)) {
- n133= .timer 1 $calc(2* (%i -1)) ns ajoin add $chan(%i)
- n134= inc %i
- n135= }
- n136=}
- n137=/botsdelajoin {
- n138= ;Syntax: <channel>
- n139= ;Usage: Deletes a channel out of each bot's personal ajoin list
- n140= if ($me == %bot1) { bot1delajoin $1 }
- n141= elseif ($me == %bot2) { bot2delajoin $1 }
- n142=
- n143= /*
- n144= elseif ($me == %bot3) { bot3delajoin $1 }
- n145= elseif ($me == %bot4) { bot4delajoin $1 }
- n146= */
- n147=
- n148=}
- n149=/check {
- n150= ;Syntax: <chan> <text>
- n151= ;Usage: Internally used to check if someone is attempting to find a security breach.
- n152= if ($left($2,1) == !) {
- n153= msg $1 4ERROR:1 This sentence contains illegal characters!
- n154= .msg %owner 4WARNING:1 $time $1-
- n155= halt
- n156= }
- n157= elseif ($chr(35) isin $2-) {
- n158= msg $1 4ERROR:1 This sentence contains illegal characters!
- n159= .msg %owner 4WARNING:1 $time $1-
- n160= halt
- n161= }
- n162=}
- n163=/delajoin {
- n164= ;Syntax: <channel>
- n165= ;Usage: Deletes a channel out of the main ajoin list
- n166= if ($1 isin $read(lists\ajoinlist.txt,w,$1)) {
- n167= write -dl $+ $readn lists\ajoinlist.txt
- n168= echo 2 -at Channel " $+ $1 $+ " deleted out of ajoin list
- n169= ns ajoin del $1
- n170= }
- n171= else {
- n172= echo 4 -at ERROR: Channel is not in ajoin list!
- n173= }
- n174=}
- n175=/ghost {
- n176= ;Syntax: none
- n177= ;Usage: Ghosts "[MM]IKKE"
- n178= ns ghost [MM]IKKE <redacted>
- n179=}
- n180=/ghostbot1 {
- n181= ;Syntax: none
- n182= ;Usage: Ghosts the specified bot
- n183= ns ghost IKKE1 <redacted>
- n184=}
- n185=/ghostbot2 {
- n186= ;Syntax: none
- n187= ;Usage: Ghosts the specified bot
- n188= ns ghost IKKE2 <redacted>
- n189=}
- n190=/jSBots {
- n191= ;Syntax: <nick>
- n192= ;Usage: returns 1 if it's a jS bot, 0 if not
- n193= if ($1 == SumoA) { return 1 }
- n194= elseif ($1 == SumoB) { return 1 }
- n195= elseif ($1 == SumoC) { return 1 }
- n196= elseif ($1 == SumoD) { return 1 }
- n197= elseif ($1 == SumoE) { return 1 }
- n198= else { return 0 }
- n199=}
- n200=/MMBots {
- n201= ;Syntax: <nick>
- n202= ;Usage: returns 1 if it's a MM bot, 0 if not
- n203= if ($1 == MM1) { return 1 }
- n204= elseif ($1 == MM2) { return 1 }
- n205= elseif ($1 == MM3) { return 1 }
- n206= elseif ($1 == MM4) { return 1 }
- n207= elseif ($1 == MM5) { return 1 }
- n208= elseif ($1 == MM6) { return 1 }
- n209= elseif ($1 == MM7) { return 1 }
- n210= elseif ($1 == MM8) { return 1 }
- n211= elseif ($1 == MM9) { return 1 }
- n212= elseif ($1 == MM10) { return 1 }
- n213= elseif ($1 == Koala) { return 1 }
- n214= else { return 0 }
- n215=}
- n216=/mybots {
- n217= ;Syntax: <nick>
- n218= ;Usage: returns 1 if it's my bot, 0 if not
- n219= if ($1 == %bot1) { return 1 }
- n220= elseif ($1 == %bot2) { return 1 }
- n221=
- n222= /*
- n223= elseif ($1 == %bot3) { return 1 }
- n224= elseif ($1 == %bot4) { return 1 }
- n225= */
- n226=
- n227= else { return 0 }
- n228=}
- n229=/NDBots {
- n230= ;Syntax: <nick>
- n231= ;Usage: returns 1 if it's a ND bot, 0 if not
- n232= if ($1 == NDBot1) { return 1 }
- n233= elseif ($1 == NDBot2) { return 1 }
- n234= elseif ($1 == NDBot3) { return 1 }
- n235= elseif ($1 == NDBot4) { return 1 }
- n236= else { return 0 }
- n237=}
- n238=/random {
- n239= ;Syntax(1): <number1> <number2> <opt: text>
- n240= ;Usage(1): Will <number1> times send a random text with length <number2> to the active window. You can specify a text to start the message with (useful for server echo's)
- n241= ;Syntax(2): <nick>
- n242= ;Usage(2): Will do a slap on the specified nickname using randomly chosen adjectives and nouns in the active window
- n243= ;Syntax(3): none
- n244= ;Usage(3): Will send a random message out of the random messages file (NOT the quotes file) to the active window
- n245= if ($1 isnum && $2 isnum) {
- n246= var %l = $1
- n247= var %m = 1
- n248= while (%m <= %l) {
- n249= set %crashmsg $null
- n250= var %i = $2
- n251= var %j = 1
- n252= while (%j <= %i) {
- n253= set %crashmsg %crashmsg $+ $chr($rand(1,2147483646))
- n254= inc %j
- n255= }
- n256= if (!$3) { .timer 1 $calc(%m -1) msg $active %crashmsg }
- n257= else { .timer 1 $calc(%m -1) msg $active $3- %crashmsg }
- n258= unset %crashmsg
- n259= inc %m
- n260= }
- n261= }
- n262= elseif ($2) {
- n263= echo 4 -at ERROR:1 Usage: /random <amount of messages> <amount of signs> (optional: <message in front>)
- n264= }
- n265= elseif ($1) {
- n266= if ($1 ison $active) {
- n267= var %adjective = $read(bot\adjectives.txt)
- n268= var %noun = $read(bot\nouns.txt)
- n269= describe $active slaps $1 around a bit with $iif(($left(%adjective,1) == a || $left(%adjective,1) == e || $left(%adjective,1) == u || $left(%adjective,1) == i || $left(%adjective,1) == o) && $left(%adjective,2) != eu,an,a) %adjective %noun
- n270= }
- n271= elseif ($1 == help) {
- n272= echo -a Syntax(1): <number1> <number2> <opt: text>
- n273= echo -a Will <number1> times send a random text with length <number2> to the active window. You can specify a text to start the message with (useful for server echo's)
- n274= echo -a Syntax(2): <nick>
- n275= echo -a Usage(2): Will do a slap on the specified nickname using randomly chosen adjectives and nouns in the active window
- n276= echo -a Syntax(3): none
- n277= echo -a Usage(3): Will send a random message out of the random messages file (NOT the quotes file) to the active window
- n278=
- n279= }
- n280= else {
- n281= echo 4 -at ERROR:1 Usage: /random <amount of messages> <amount of signs> (optional: <message in front> $chr(124) /random <nick>
- n282= }
- n283= }
- n284= else {
- n285= var %i = $rand(1,5)
- n286= if (%i <= 4) { msg $active $replace($read(bot\randommessages.txt), <nick>, Nicky) }
- n287= else { describe $active $replace($read(bot\randomactions.txt), <nick>, Nicky) }
- n288= }
- n289=}
- n290=/slap {
- n291= ;Syntax: <nick>
- n292= ;Usage: Slaps a nickname in the active window and increases the slap counter
- n293= describe $active slaps $$1 around a bit with a large trout 9[ $+ %slaps slaps $+ ]
- n294= inc %slaps
- n295=}
- n296=/UGPBots {
- n297= ;Syntax: <nick>
- n298= ;Usage: returns 1 if it's a jS bot, 0 if not
- n299= if ($1 == Pecky) { return 1 }
- n300= elseif ($1 == Packy) { return 1 }
- n301= elseif ($1 == Pucky) { return 1 }
- n302= elseif ($1 == Pocky) { return 1 }
- n303= else { return 0 }
- n304=}
- n305=
- n306=/users {
- n307= ;Syntax: none
- n308= ;Usage: Will show in echo how much users are in the current channel
- n309= echo -at $nick($chan,0) users in $chan
- n310=}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement