README.md in hahamut-0.1.1 vs README.md in hahamut-0.1.2

- old
+ new

@@ -63,15 +63,15 @@ config.on_message do |bot, event| # Implement your bot behavior end # Option 2 - config.on_message ChatbotHandler + config.handler = ChatbotHandler end ``` -> If you want to use the handler object, you must implement a class method `#call` +> If you want to use the handler object, you must implement a `#call` method ### Sending Message Current support message types @@ -84,11 +84,11 @@ When you receive a message, you will get the bot instance and event. To send a message, you have to use bot instance to send a message object. ```ruby message = Hahamut::Message::Text.new(text: 'Hello World') -bot.send_to 'RECEIPIENT_ID', message +bot.send_to 'RECIPIENT_ID', message ``` > BotStart can accept `init` attribute with BotEvent, it can help you write less JSON for it. > This feature will be improved in the future to make it easier to use. @@ -97,10 +97,10 @@ Same as send a message, we need a bot instance. The result is a `Hahamut::Message::Image` object and you can send to the user directly. ```ruby image = bot.upload('IMAGE_PATH') -bot.send_to 'RECEIPIENT_ID', image +bot.send_to 'RECIPIENT_ID', image ``` ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.