mirror of
https://github.com/MuRuLOSE/limoka.git
synced 2026-06-17 23:04:17 +02:00
Commited backup
This commit is contained in:
26
MuRuLOSE/HikkaModulesRepo/K.py
Normal file
26
MuRuLOSE/HikkaModulesRepo/K.py
Normal file
@@ -0,0 +1,26 @@
|
||||
from hikkatl.types import Message
|
||||
from .. import loader, utils
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@loader.tds
|
||||
class K(loader.Module):
|
||||
"""K"""
|
||||
|
||||
strings = {"name": "K", "K": "K"}
|
||||
|
||||
async def client_ready(self, client, db):
|
||||
self._log_lib = await self.import_lib(
|
||||
"https://raw.githubusercontent.com/MuRuLOSE/HikkaModulesRepo/main/libaries/logs.py",
|
||||
suspend_on_error=True
|
||||
)
|
||||
self._log_handler = self._log_lib._log_handler
|
||||
logger.addHandler(self._log_handler)
|
||||
|
||||
@loader.command()
|
||||
async def k(self, message: Message):
|
||||
"""K"""
|
||||
raise Exception("Testing error handling")
|
||||
await utils.answer(message, "K")
|
||||
# why
|
||||
Reference in New Issue
Block a user