diff --git a/Gemfile b/Gemfile index 3108923..2e6c663 100644 --- a/Gemfile +++ b/Gemfile @@ -4,6 +4,5 @@ gem 'base64', '~> 0.1.0' gem 'dicebag', git: 'https://github.com/Humblemonk/Dice-Bag.git', branch: 'pre-3.3' gem 'discordrb', github: 'shardlab/discordrb', branch: 'main' gem 'dotenv', '~> 2.5' -gem 'rest-client', '~> 2.0', '>= 2.0.2' gem 'rubocop', require: false gem 'sqlite3', '~> 1.3', '>= 1.3.11' diff --git a/dice_maiden.rb b/dice_maiden.rb index e5f485c..6296060 100755 --- a/dice_maiden.rb +++ b/dice_maiden.rb @@ -1,6 +1,6 @@ # Dice bot for Discord # Author: Humblemonk -# Version: 8.7.0 +# Version: 8.7.1 # Copyright (c) 2017. All rights reserved. # !/usr/bin/ruby # If you wish to run a single instance of this bot, please follow the "Manual Install" section of the readme! @@ -32,8 +32,6 @@ $db.busy_timeout = (10_000) end -require 'rest-client' if @shard == 0 - mutex = Mutex.new if @shard == 0 @@ -206,11 +204,5 @@ # Bot died and cant connect to Discord. Kill the bot and have eye restart it exit! end - # Limit HTTP POST to shard 0. We do not need every shard hitting the discordbots API - next unless @shard == 0 - - servers = $db.execute 'select sum(server_count) from shard_stats;' - RestClient.post('https://top.gg/api/bots/377701707943116800/stats', - { "shard_count": @total_shards, "server_count": servers.join.to_i }, 'Authorization': ENV['API'], 'Content-Type': :json) end end diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 6a3b9a8..dc043bf 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,7 @@ +## 8.7.1 - 2024-03-28 +### Added +- Removed rest client API functionality + ## 8.7.0 - 2024-03-25 ### Added - Refactored Gemfile