Skip to content

Instantly share code, notes, and snippets.

@yukiisbored
Last active August 25, 2016 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yukiisbored/f25646e83c86920ec731e52d9eeaa23d to your computer and use it in GitHub Desktop.
Save yukiisbored/f25646e83c86920ec731e52d9eeaa23d to your computer and use it in GitHub Desktop.
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