Skip to content

Commit

Permalink
fix: misc
Browse files Browse the repository at this point in the history
  • Loading branch information
Skelmis committed Jan 4, 2024
1 parent 470a0e9 commit 0d3264a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion suggestions/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

class SuggestionsBot(commands.AutoShardedInteractionBot, BotBase):
def __init__(self, *args, **kwargs):
self.version: str = "Public Release 3.18"
self.version: str = "Public Release 3.20"
self.main_guild_id: int = 601219766258106399
self.legacy_beta_role_id: int = 995588041991274547
self.automated_beta_role_id: int = 998173237282361425
Expand Down
5 changes: 4 additions & 1 deletion suggestions/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import textwrap
from traceback import format_exception

import aiohttp
import cooldowns
import disnake
from disnake import Locale
Expand All @@ -26,7 +27,9 @@ async def create_bot(database_wrapper=None) -> SuggestionsBot:
is_prod: bool = True if os.environ.get("PROD", None) else False

if is_prod:
total_shards = 53
async with aiohttp.ClientSession() as session:
async with session.get("http://localhost:7878/shard-count") as resp:
total_shards = int(await resp.text())
cluster_id = int(os.environ["CLUSTER"])
offset = cluster_id - 1
number_of_shards_per_cluster = 10
Expand Down

0 comments on commit 0d3264a

Please sign in to comment.