Created
June 27, 2011 21:40
-
-
Save richardtifelt/1049909 to your computer and use it in GitHub Desktop.
Example Flower command class
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 MyCommand < Flower::Command | |
respond_to %w(testing test) | |
def self.respond(command, message, sender, flower) | |
# Do something with "flower" | |
flower.say("Only testing") | |
end | |
def self.description | |
"Text that describes your command. It's used in the built-in Help command." | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment