Archived
1
0
Fork 0
This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
akari-bot/core/elements.py

41 lines
1.1 KiB
Python
Raw Normal View History

from enum import Enum
from typing import Coroutine, Any, Optional, Callable
class Target:
def __init__(self,
fromId,
fromName,
senderId,
senderName,
msgFrom
):
self.fromId = fromId
self.fromName = fromName
self.senderId = senderId
self.senderName = senderName
self.msgFrom = msgFrom
2021-07-06 18:00:26 +00:00
2021-07-09 09:35:23 +00:00
class Module:
2021-07-07 16:00:24 +00:00
def __init__(self,
function: Callable,
bind_prefix: str,
alias: [str, tuple],
help_doc: str,
need_self_process: bool,
is_admin_function: bool,
is_base_function: bool,
is_superuser_function: bool,
autorun: bool):
2021-07-06 18:00:26 +00:00
self.function = function
2021-07-07 16:00:24 +00:00
self.bind_prefix = bind_prefix
self.alias = alias
self.help_doc = help_doc
self.need_self_process = need_self_process
self.is_admin_function = is_admin_function
self.is_base_function = is_base_function
self.is_superuser_function = is_superuser_function
self.autorun = autorun