Skip to content

v2.0.0

Choose a tag to compare

@tonkku107 tonkku107 released this 29 Mar 20:14
· 72 commits to master since this release
5f70ada
  • getVotes()
    • No longer has onlyIds or days parameters
    • Due to API change, only shows the last 1000 votes.
  • hasVoted()
    • No longer has days parameter
  • The library now checks if a library is supported for autoposting
  • Added options
    • Added statsInterval for a custom autoposter interval
    • Added webhookPort, webhookPath and webhookAuth for the new feature below
  • Webhooks!
    • You can now listen to webhooks with already familiar events!
    • Starts automatically when webhookPort option is set
    • ready event for checking when the webhook is listening
    • vote event with the webhook vote object after you receive a vote
    • Depending on your server setup , you may have to open ports or allow from your firewall.