lib/botup/templates/commands_keeper.erb in botup-0.3.1 vs lib/botup/templates/commands_keeper.erb in botup-0.4.0
- old
+ new
@@ -1,19 +1,11 @@
module <%= class_name %>
module CommandsKeeper
- COMMANDS = %i(test)
-
- def test
+ def test(params:, message:)
'Wow, I\'m using telegram bot!'
end
- def help
- # Put some help info here
- end
-
- private
-
- def has_command?(command)
- COMMANDS.include?(command)
+ def help(**)
+ "Put some help information here"
end
end
end