Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --irc.register_callback("channel_msg", function(channel, from, message)
- if from == "Sjele" and string.find(string.lower(message),"lock you sjbaot") then
- if lock == nil then
- lock = true
- irc.say(channel, "State has been changed")
- return
- end
- irc.say(channel, "Locked status altred")
- lock = not lock
- end
- --local is_cmd, cmd, arg = message:match("^(**)(%w+) (.*)$")
- --if is_cmd and plugin[cmd] then
- if lock == true then
- if from ~="Sjele" then
- irc.say(channel, "Baot is locked")
- return
- end
- end
- --plugin[cmd](channel.name, from, arg)
- --end
- --for k,v in pairs(callback) do
- --if type(v) == "function" then
- --v(channel.name, from, message)
- --end
- --end
- --end --remove meh
- --end -- Does nothing, i will remove
- --end)
- Every line that has a -- is no need for you.
Add Comment
Please, Sign In to add comment