Skip to content

Commit d16e24d

Browse files
fix: set "[Levels] Ready" to only print on new connections and not on a reconnection
chore: updated bot configs for quick new release
1 parent 3e64424 commit d16e24d

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

cogs/Levels.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,10 @@ async def on_message(self, message):
359359

360360
@commands.Cog.listener()
361361
async def on_ready(self):
362-
self.controller = LevelsController(self.bot, self.bot.db)
363-
print("[Level] Ready")
362+
if self.controller is None:
363+
self.controller = LevelsController(self.bot, self.bot.db)
364+
if not self.bot.ready_:
365+
print("[Levels] Ready")
364366

365367
@commands.slash_command()
366368
@commands.guild_only()
@@ -376,7 +378,7 @@ async def rank(self, inter: ApplicationCommandInteraction, user: Optional[Member
376378
try:
377379
user_record = await self.controller.get_user(user)
378380
if not user_record:
379-
print("[Level] User not found")
381+
print("[Levels] User not found")
380382
await self.controller.add_user(user, inter.guild)
381383
return await self.rank(inter, user)
382384
rank = await self.controller.get_rank(inter.guild.id, user_record)

utils/CONSTANTS.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from dataclasses import dataclass
44

5-
__VERSION__ = "1.8.1"
5+
__VERSION__ = "1.8.2"
66

77
from typing import Final
88

utils/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def dev(cls):
2828

2929
@dataclass
3030
class Config:
31-
Development = True # if true will use base server ID's else will use development server ID's
31+
Development = False # if true will use base server ID's else will use development server ID's
3232
colors = Colors
3333
colours = colors
3434
tokens = Tokens

0 commit comments

Comments
 (0)