SHARE
TWEET

Untitled

a guest Jan 11th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --irc.register_callback("channel_msg", function(channel, from, message)
  2.     if from == "Sjele" and string.find(string.lower(message),"lock you sjbaot") then
  3.         if lock == nil then
  4.             lock = true
  5.             irc.say(channel, "State has been changed")
  6.             return
  7.         end
  8.         irc.say(channel, "Locked status altred")
  9.         lock = not lock
  10.     end
  11.     --local is_cmd, cmd, arg = message:match("^(**)(%w+) (.*)$")   
  12.             --if is_cmd and plugin[cmd] then
  13.                 if lock == true then
  14.                     if from ~="Sjele" then
  15.                         irc.say(channel, "Baot is locked")
  16.                         return
  17.                     end
  18.                 end
  19.                 --plugin[cmd](channel.name, from, arg)
  20.             --end
  21.             --for k,v in pairs(callback) do
  22.                 --if type(v) == "function" then
  23.                     --v(channel.name, from, message)
  24.                 --end
  25.             --end
  26.         --end --remove meh
  27.     --end -- Does nothing, i will remove   
  28. --end)
  29.  
  30. Every line that has a -- is no need for you.
RAW Paste Data
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top