-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
159 changed files
with
9,211 additions
and
5,867 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,71 @@ | ||
from loguru import logger | ||
from pydantic import ValidationError | ||
"""A little python framework for building bots for Express.""" | ||
|
||
from .bots import AsyncBot as Bot | ||
from .collectors import HandlersCollector | ||
from .dependencies import Depends | ||
from .exceptions import ( | ||
BotXAPIException, | ||
BotXDependencyFailure, | ||
BotXException, | ||
BotXValidationError, | ||
from botx.bots import Bot | ||
from botx.clients import AsyncClient, Client | ||
from botx.collecting import Collector | ||
from botx.exceptions import BotXAPIError, DependencyFailure, ServerUnknownError | ||
from botx.models.buttons import BubbleElement, KeyboardElement | ||
from botx.models.credentials import ExpressServer, ServerCredentials | ||
from botx.models.enums import ( | ||
ChatTypes, | ||
CommandTypes, | ||
Recipients, | ||
Statuses, | ||
SystemEvents, | ||
UserKinds, | ||
) | ||
from .models import ( | ||
CTS, | ||
BotCredentials, | ||
BubbleElement, | ||
ChatCreatedData, | ||
ChatTypeEnum, | ||
CommandCallback, | ||
CommandHandler, | ||
CommandTypeEnum, | ||
CommandUIElement, | ||
CTSCredentials, | ||
File, | ||
KeyboardElement, | ||
Mention, | ||
MentionTypeEnum, | ||
MentionUser, | ||
MenuCommand, | ||
Message, | ||
MessageCommand, | ||
from botx.models.errors import BotDisabledErrorData, BotDisabledResponse | ||
from botx.models.events import ChatCreatedEvent | ||
from botx.models.files import File | ||
from botx.models.mentions import ChatMention, Mention, MentionTypes, UserMention | ||
from botx.models.menu import Status | ||
from botx.models.messages import Message, SendingMessage | ||
from botx.models.receiving import IncomingMessage | ||
from botx.models.sending import ( | ||
MessageMarkup, | ||
MessageOptions, | ||
MessageUser, | ||
NotificationOpts, | ||
ReplyMessage, | ||
ResponseRecipientsEnum, | ||
MessagePayload, | ||
NotificationOptions, | ||
SendingCredentials, | ||
Status, | ||
StatusEnum, | ||
StatusResult, | ||
SystemEventsEnum, | ||
UserInChatCreated, | ||
UserKindEnum, | ||
UpdatePayload, | ||
) | ||
|
||
logger.disable("botx") | ||
from botx.params import Depends | ||
|
||
__all__ = ( | ||
"BotXDependencyFailure", | ||
"Depends", | ||
"Bot", | ||
"HandlersCollector", | ||
"BotXException", | ||
"ValidationError", | ||
"CTS", | ||
"SystemEventsEnum", | ||
"BotCredentials", | ||
"ChatTypeEnum", | ||
"CommandUIElement", | ||
"CTSCredentials", | ||
"AsyncClient", | ||
"Client", | ||
"Collector", | ||
"BotXAPIError", | ||
"ServerUnknownError", | ||
"DependencyFailure", | ||
"Depends", | ||
"BubbleElement", | ||
"KeyboardElement", | ||
"ExpressServer", | ||
"ServerCredentials", | ||
"Statuses", | ||
"Recipients", | ||
"UserKinds", | ||
"ChatTypes", | ||
"CommandTypes", | ||
"SystemEvents", | ||
"BotDisabledErrorData", | ||
"BotDisabledResponse", | ||
"ChatCreatedEvent", | ||
"File", | ||
"CommandTypeEnum", | ||
"Mention", | ||
"MentionTypeEnum", | ||
"MentionUser", | ||
"MenuCommand", | ||
"Message", | ||
"MessageCommand", | ||
"MessageUser", | ||
"ChatMention", | ||
"UserMention", | ||
"MentionTypes", | ||
"Status", | ||
"StatusEnum", | ||
"StatusResult", | ||
"CommandHandler", | ||
"ReplyMessage", | ||
"BubbleElement", | ||
"KeyboardElement", | ||
"NotificationOpts", | ||
"ResponseRecipientsEnum", | ||
"CommandCallback", | ||
"ChatCreatedData", | ||
"UserInChatCreated", | ||
"Message", | ||
"SendingMessage", | ||
"IncomingMessage", | ||
"MessageMarkup", | ||
"MessageOptions", | ||
"MessagePayload", | ||
"NotificationOptions", | ||
"UpdatePayload", | ||
"SendingCredentials", | ||
"BotXAPIException", | ||
"BotXValidationError", | ||
"UserKindEnum", | ||
) |
Oops, something went wrong.