Created
December 13, 2012 17:34
-
-
Save anonymous/4278157 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TF2Pug | |
include Cinch::Plugin | |
match /admin (.+)/, method: :cmd_admin | |
def cmd_admin(m, args = nil) | |
if m.channel == Const::IRC_mainchan | |
return m.user.send "Please append a message with your !admin call" if args == nil | |
Channel(Const::IRC_adminchan).msg "[CALLING ADMIN] #{m.user.nick}: #{args}" | |
m.user.send "We have received your message. An admin will respond as soon as possible", true | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment