Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Say
- include Cinch::Plugin
- match /say (#\S+) (.*)/, method: :say
- match /say (\S+) (.*)/, method: :usay
- match /powerup/, method: :powerup
- match /sexify me/, method: :powerup
- match /crash/, method: :crash
- match /kick (\S+)/, method: :kick
- def say(m, c, s, *args)
- return unless m.user.authname == "catepillar"
- channel = Channel(c)
- channel.msg s
- end
- def usay(m, c, s, *args)
- return unless m.user.authname == "catepillar"
- user = User(c)
- user.msg s
- end
- def powerup(m, *args)
- return if m.user.authname.match(/cate(pillar)?/).nil?
- m.channel.op(m.user)
- m.channel.voice(m.user)
- end
- def crash(m, *args)
- m.reply "But I don't wanna."
- end
- def kick(m, user, *args)
- return if m.user.authname.match(/cate(pillar)?/).nil?
- m.channel.kick(User(user))
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement