This repository has been archived by the owner. It is now read-only.

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
Repository

discordcr-dbl

Owner
Statistic
  • 1
  • 0
  • 0
  • 0
  • 1
  • about 6 years ago
  • November 25, 2018
License

Links
Synced at

Sat, 21 Dec 2024 01:05:58 GMT

Languages