-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
__init__.py
29 lines (24 loc) · 1.09 KB
/
__init__.py
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
from ravestate.module import Module
from ravestate_telegramio import telegram_bot
import ravestate_rawio as rawio
import ravestate_interloc as interloc
import ravestate_ontology as ontology
CONFIG = {
# Token for the Telegram Bot
telegram_bot.TOKEN_CONFIG_KEY: "",
# Not to be set in a config file or via the command line. Will be set by master process as a runtime_override.
telegram_bot.CHILD_CONN_CONFIG_KEY: None,
# The config-paths listed here will be used for each new telegram chat (if they don't share the same context).
# Currently only absolute paths are supported
telegram_bot.CHILD_FILES_CONFIG_KEY: [],
# Whether all telegram chats should share the same context or not
telegram_bot.ALL_IN_ONE_CONTEXT_CONFIG_KEY: False,
# The timespan in minutes in which a chat will be kept active after the last message
telegram_bot.CHAT_LIFETIME: 5
}
with Module(
name=telegram_bot.MODULE_NAME,
config=CONFIG,
depends=(rawio.mod, interloc.mod, ontology.mod)) as mod:
mod.add(telegram_bot.telegram_run)
mod.add(telegram_bot.telegram_output)