discordcr-dbl

Crystal API wrapper for discordbots.org

discordcr-dbl

Crystal API wrapper for discordbots.org.

Example

# Post stats to DBL every 30 minutes
dbl_client = Dbl::Client.new(ENV["DBL_TOKEN"], client.cache)
dbl_client.start

dbl_client.get_bot(id)
dbl_client.get_bot_stats(id)
dbl_client.get_bots({ "search" => "library: discordcr" })

# Start webhook server on port  3500 (default)
dbl = Dbl::Server(ENV["DBL_PASS"], 3500)

dbl_client.on_post do |req|
  puts req.inspect
end

dbl.on_vote do |payload|
  ...
end
Owner
github statistic
  • 1
  • 1
  • 0
  • 0
  • about 2 years ago
  • November 25, 2018
License

Links
Synced at

Sun, 17 Jan 2021 02:31:10 GMT