Last active
August 25, 2016 11:58
-
-
Save yukiisbored/f25646e83c86920ec731e52d9eeaa23d 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 "<SECRET TOKEN>" | |
=> #<Ayanami::Bot:0x000000026c5ca8 @token="<SECRET TOKEN>"> | |
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):3 | |
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