Created
August 25, 2016 12:08
-
-
Save yukiisbored/351e9d5de4b15dd78482b9af84c131fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):001:0> b = Ayanami::Bot.new "<token goes here>" | |
=> #<Ayanami::Bot:0x00000002d13b50 @token="<token goes here>"> | |
irb(main):002:0> b.get_updates | |
ArgumentError: only accepts JSON raw string, and Hash. Got NilClass | |
from /home/yuki/git/ayanami/lib/ayanami/types.rb:12:in `initialize' | |
from /home/yuki/git/ayanami/lib/ayanami/types.rb:417:in `initialize' | |
from /home/yuki/git/ayanami/lib/ayanami/types.rb:533:in `new' | |
from /home/yuki/git/ayanami/lib/ayanami/types.rb:533:in `initialize' | |
from /home/yuki/git/ayanami/lib/ayanami/bot.rb:67:in `new' | |
from /home/yuki/git/ayanami/lib/ayanami/bot.rb:67:in `block in get_updates' | |
from /home/yuki/git/ayanami/lib/ayanami/bot.rb:67:in `each' | |
from /home/yuki/git/ayanami/lib/ayanami/bot.rb:67:in `get_updates' | |
from (irb):2 | |
from ./console:14:in `<main>' | |
irb(main):003:0> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment