Skip to content

Instantly share code, notes, and snippets.

@richardtifelt
Created June 27, 2011 21:40
Show Gist options
  • Save richardtifelt/1049909 to your computer and use it in GitHub Desktop.
Save richardtifelt/1049909 to your computer and use it in GitHub Desktop.
Example Flower command class
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