-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path__init__.py
More file actions
87 lines (80 loc) · 2 KB
/
Copy path__init__.py
File metadata and controls
87 lines (80 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
"""CSP Bot - Multi-platform chat bot using chatom.
This package provides a CSP-based bot framework that leverages
chatom for unified cross-platform chat support.
Key features:
- Unified Message, User, Channel models via chatom
- Cross-platform mention generation
- Backend-specific message formatting
- Entity recognition and parsing
- Support for Slack, Symphony, and Discord
"""
__version__ = "2.0.0"
# Re-export chatom types for convenience
from chatom import Channel, Message, User
from .bot import Bot
from .bot_config import BotConfig, DiscordConfig, SlackConfig, SymphonyConfig, TelegramConfig
from .commands import (
BaseCommand,
BaseCommandModel,
EchoCommand,
HelpCommand,
NoResponseCommand,
ReplyCommand,
ReplyToAllCommand,
ReplyToAuthorCommand,
ReplyToOtherCommand,
ScheduleCommand,
StatusCommand,
mention_user,
)
from .gateway import CspBotGateway, Gateway, GatewayChannels, GatewayModule, GatewaySettings
from .structs import Backend, BotCommand, BotMessage, CommandVariant
from .utils import format_message, get_backend_format, is_valid_url, mention_users
# Alias for backwards compatibility with tests
Channels = GatewayChannels
__all__ = (
# Version
"__version__",
# Chatom re-exports
"Channel",
"Message",
"User",
# Bot
"Bot",
# Config
"BotConfig",
"DiscordConfig",
"SlackConfig",
"SymphonyConfig",
"TelegramConfig",
# Commands
"BaseCommand",
"BaseCommandModel",
"EchoCommand",
"HelpCommand",
"NoResponseCommand",
"ReplyCommand",
"ReplyToAllCommand",
"ReplyToAuthorCommand",
"ReplyToOtherCommand",
"ScheduleCommand",
"StatusCommand",
# Gateway
"Channels",
"CspBotGateway",
"Gateway",
"GatewayChannels",
"GatewayModule",
"GatewaySettings",
# Structs
"Backend",
"BotCommand",
"BotMessage",
"CommandVariant",
# Utils
"format_message",
"get_backend_format",
"is_valid_url",
"mention_user",
"mention_users",
)