Commit 0ec8495

mo <mo.khan@gmail.com>
2018-05-10 04:17:24
update example with execute_shell usage.
1 parent 21236fc
Changed files (1)
lib
del
examples
lib/del/examples/routes.rb
@@ -8,7 +8,7 @@ Del.configure do |x|
 
   x.router.register(/^cowsay (.*)/) do |message, match_data|
     Del.logger.info("COWSAY!")
-    message.reply("/code #{`cowsay #{match_data[1]}`}")
+    message.execute_shell(['cowsay', match_data[1]])
   end
 
   x.router.register(/^[Hh]ello/) do |message|