Skip to content

Commit

Permalink
Update erm.py (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeyUsersREC authored Jan 12, 2025
1 parent a8101cf commit 2997804
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions erm.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ async def is_owner(self, user: discord.User):
async def setup_hook(self) -> None:
self.external_http_sessions: list[aiohttp.ClientSession] = []
self.view_state_manager: ViewStateManager = ViewStateManager()
self.scheduled_pm_queue = asyncio.Queue()
self.pm_counter = {}
self.team_restrictions_infractions = {} # Guild ID => [ { Username: Count } ]
self.log_tracker = LogTracker()

global setup
if not self.setup_status:
Expand All @@ -150,6 +146,12 @@ async def setup_hook(self) -> None:
self.staff_requests = Document(self.panel_db, "StaffRequests")

self.start_time = time.time()

self.log_tracker = LogTracker(self)
self.scheduled_pm_queue = asyncio.Queue()
self.pm_counter = {}
self.team_restrictions_infractions = {} # Guild ID => [ { Username: Count } ]

self.shift_management = ShiftManagement(self.db, "shift_management")
self.errors = Errors(self.db, "errors")
self.loas = ActivityNotices(self.db, "leave_of_absences")
Expand Down

0 comments on commit 2997804

Please sign in to comment.