Skip to content

Commit ad42c7b

Browse files
committed
Update bot-info logic
1 parent 46190c4 commit ad42c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dice_maiden_logic.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def check_bot_info(event)
537537
return true
538538
end
539539
servers = $db.execute 'select sum(server_count) from shard_stats;'
540-
shards = $db.execute 'select sum(shard_id) from shard_stats;'
540+
shards = $db.execute 'select max(shard_id) from shard_stats;'
541541
total_shards = shards.join.to_i + 1
542542
total_mem = $db.execute 'select sum(mem) from shard_stats;'
543543
event.respond(content: "| Dice Maiden | - #{servers.join.to_i} active servers across #{total_shards} shards using #{total_mem.join.to_i.round / 1024}GB of ram")

0 commit comments

Comments
 (0)