Skip to content

Instantly share code, notes, and snippets.

@yukiisbored
Created August 25, 2016 12:08
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/351e9d5de4b15dd78482b9af84c131fc to your computer and use it in GitHub Desktop.
Save yukiisbored/351e9d5de4b15dd78482b9af84c131fc to your computer and use it in GitHub Desktop.
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