Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function MOD.CheckNightbot()
- local users = #GetUsers();
- if UserStatus("nightbot")==0 and users > 1 then
- print("ATTENTION: Nightbot is missing!");
- MOD.Timer("nightbot",900,MOD.CheckNightbot);
- else
- MOD.Timer("nightbot",30,MOD.CheckNightbot);
- end
- end
- local Hook = MOD.EventMsg;
- MOD.EventMsg = function(user,msg)
- if msg:lower():find("http://strawpoii.me",1,true) then
- print("Fake strawpoll; strawpoii detected");
- if UserStatus("kitsunebot")==2 and UserStatus(user)~=2 then
- MOD.Timeout(user);
- end
- end
- if type(Hook) == "function" then
- return Hook(user,msg);
- end
- end
- local Hook2 = MOD.EventSub;
- MOD.EventSub = function(sub)
- print("PogChamp " .. sub .. " has subscribed! PogChamp");
- if type(Hook2) == "function" then
- return Hook2 (sub);
- end
- end
- MOD.Timer("nightbot",30,MOD.CheckNightbot);
- return MOD.CheckNightbot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement