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
  • almost 6 years ago
  • November 25, 2018
License

Links
Synced at

Sun, 17 Nov 2024 07:05:32 GMT

Languages