MCPcopy Create free account
hub / github.com/TechifyBots/Rename-Bot / __init__

Method __init__

plugins/maintenance.py:20–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18
19class TechifyBots:
20 def __init__(self):
21 mongo_client=AsyncIOMotorClient(Config.DB_URL)
22 db=mongo_client[Config.DB_NAME]
23 self.settings_col=db["settings"]
24
25 async def get_maintenance(self)->bool:
26 data=await self.settings_col.find_one({"_id":"maintenance"})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected