Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix api name
Browse files Browse the repository at this point in the history
  • Loading branch information
Chew committed Jan 22, 2019
1 parent d93045d commit 86af442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/extensions/servers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def initialize(shards)

def post(count, shard)
DBL.stats.updateservercount(count, shard, @shards) unless CONFIG['dbotsorg'].nil?
RestClient.post("https://discord.bots.gg/api/v1/bots/#{CONFIG['client_id']}/stats", { 'guildCount': count, 'shardCount': @shards, 'shardId': shard }, Authorization: CONFIG['dbotsgg'], 'Content-Type': :json) unless CONFIG['dbbapi'].nil?
RestClient.post("https://discord.bots.gg/api/v1/bots/#{CONFIG['client_id']}/stats", { 'guildCount': count, 'shardCount': @shards, 'shardId': shard }, Authorization: CONFIG['dbotsgg'], 'Content-Type': :json) unless CONFIG['dbotsgg'].nil?
true
rescue StandardError
false
Expand Down

0 comments on commit 86af442

Please sign in to comment.