Advertisement
Buzzrz

Me.lua

Jan 15th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. do
  2.  
  3. local function run(msg, matches)
  4. if matches[1] == 'me' then
  5. if is_sudo(msg) then
  6. return "you're sudo"
  7. elseif is_admin(msg) then
  8. return "you're admin"
  9. elseif is_owner(msg) then
  10. return "you're the owner
  11. elseif is_momod(msg) then
  12. return "you're a moderator"
  13. else
  14. return "you're just a member"
  15. end
  16. end
  17. end
  18.  
  19. return {
  20. patterns = {
  21. "^[!/](me)$"
  22. },
  23. run = run
  24. }
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement