Skip to content

Instantly share code, notes, and snippets.

@jeroenvisser101
Last active October 31, 2015 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeroenvisser101/78d0a33d3c7cff2800e2 to your computer and use it in GitHub Desktop.
Save jeroenvisser101/78d0a33d3c7cff2800e2 to your computer and use it in GitHub Desktop.
# Bol.com Lookup Command
class BolLookupCommand < Command
def help
'Searches for products in the Bol.com catalog.'
end
def syntax
'/bol <search query>'
end
def regex
/^\/bol\s+(?<product>.*)/i
end
def invoke!
reply 'hello'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment