CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 19:58:26 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=5d8c23efab9fb0afdd344f4c4c9503c6b9ba11a2bf230760be844b6fd6899e39a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22BHipJhPvX-er7B0847RORNGIWJHRDpAa%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d0eea34c748a2a-BLR
bot.nut - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AddonInfo <- {
- "Name":"bot.nut"
- "Summary":"Bot framework"
- "Version":"0.01"
- "Author":"NovaSquirrel"
- };
- const Prefix = "sb.";
- function CommandWatch(Type, P, Context) {
- P = api.DecodeJSON(P);
- if(startswith(P.Text, Prefix)) {
- local ReplyWith = "say";
- local WithoutPrefix = P.Text.slice(Prefix.len());
- local Split = api.TextParamSplit(WithoutPrefix);
- // Don't send an argument if there is none
- if(Split[0][0] != WithoutPrefix)
- api.Event("bot command", {"Nick":P.Nick, "Cmd":Split[0][0], "Arg":Split[1][1], "Say":"contextsay", "SayArg":Context+" "}, Context);
- else
- api.Event("bot command", {"Nick":P.Nick, "Cmd":Split[0][0], "Arg":"", "Say":"contextsay", "SayArg":Context+" "}, Context);
- }
- return EventReturn.NORMAL;
- }
- function BadCmd(Type, Params, Context) {
- // api.Command("say", "Unrecognized command", Context);
- return EventReturn.DELETE;
- }
- // register hooks
- foreach(T in ["user message", "user message hilight"])
- api.AddEventHook(T, CommandWatch, Priority.NORMAL, 0, 0, 0);
- api.AddEventHook("bot command", BadCmd, Priority.LOWEST, 0, 0, 0);
- function SayCmd(T, P, C) {
- P = api.TextParamSplit(P);
- local Context = P[0][0];
- local Text = P[1][1];
- api.Command("say", Text, Context);
- return EventReturn.HANDLED;
- }
- api.AddCommandHook("contextsay", SayCmd, Priority.NORMAL, null, null);
Advertisement
Add Comment
Please, Sign In to add comment
-
Free Crypto Method (NEVER SEEN BEFORE)ββ 1
JavaScript | 2 sec ago | 0.25 KB
-
π Swapzone +37% glitch
JavaScript | 4 sec ago | 0.24 KB
-
ββ
Swapzone Glitch β
Working ββ E
JavaScript | 10 sec ago | 0.25 KB
-
π Exchange profit method
JavaScript | 13 sec ago | 0.24 KB
-
β
Make $2500 in 20 minutesβββ X
JavaScript | 19 sec ago | 0.25 KB
-
β Free Crypto Method β
JavaScript | 22 sec ago | 0.24 KB
-
π Swapzone +37% glitch β O
JavaScript | 28 sec ago | 0.25 KB
-
π Crypto Swap Glitch β
Working
JavaScript | 31 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand