2021-05-02 16:44:03 +02:00
|
|
|
[default]
|
2021-05-03 19:48:04 +02:00
|
|
|
debug = true
|
|
|
|
default = true
|
|
|
|
local_state_dir = "/var/mobots"
|
|
|
|
log_dir = "/var/log/mobots"
|
|
|
|
db_name = "events.db"
|
|
|
|
db_path = "@format {this.local_state_dir}/{this.db_name}"
|
2021-05-02 16:44:03 +02:00
|
|
|
|
2021-05-30 21:47:36 +02:00
|
|
|
[default.source.mobilizon]
|
|
|
|
url="https://some_mobilizon"
|
|
|
|
group="my_group"
|
|
|
|
|
2021-05-09 17:17:48 +02:00
|
|
|
[default.selection]
|
|
|
|
strategy = "next_event"
|
|
|
|
|
|
|
|
[default.selection.strategy_options]
|
|
|
|
break_between_events_in_minutes =5
|
|
|
|
|
|
|
|
[default.publisher.telegram]
|
|
|
|
active=true
|
2021-05-09 17:22:14 +02:00
|
|
|
chat_id="xxx"
|
2021-07-05 21:44:11 +02:00
|
|
|
msg_template_path="xxx"
|
|
|
|
token="xxx"
|
|
|
|
username="xxx"
|
2021-05-09 17:17:48 +02:00
|
|
|
[default.publisher.facebook]
|
|
|
|
active=false
|
|
|
|
[default.publisher.zulip]
|
|
|
|
active=false
|
|
|
|
[default.publisher.twitter]
|
|
|
|
active=false
|
|
|
|
[default.publisher.mastodon]
|
|
|
|
active=false
|
|
|
|
|
2021-05-09 17:22:14 +02:00
|
|
|
[default.notifier.telegram]
|
|
|
|
active=true
|
|
|
|
chat_id="xxx"
|
2021-07-05 21:44:11 +02:00
|
|
|
token="xxx"
|
|
|
|
username="xxx"
|
2021-05-09 17:22:14 +02:00
|
|
|
[default.notifier.zulip]
|
|
|
|
active=false
|
|
|
|
[default.notifier.twitter]
|
|
|
|
active=false
|
|
|
|
[default.notifier.mastodon]
|
|
|
|
active=false
|
|
|
|
|
|
|
|
|
2021-05-03 19:48:04 +02:00
|
|
|
[default.logging]
|
|
|
|
version = 1
|
|
|
|
disable_existing_loggers = false
|
|
|
|
|
|
|
|
[default.logging.formatters.standard]
|
|
|
|
format = '[%(asctime)s] [%(levelno)s] [%(levelname)s] %(message)s'
|
|
|
|
|
|
|
|
[default.logging.handlers.console]
|
|
|
|
level = "INFO"
|
|
|
|
class = "logging.StreamHandler"
|
|
|
|
formatter = "standard"
|
|
|
|
stream = "ext://sys.stderr"
|
|
|
|
|
|
|
|
[default.logging.handlers.logfile]
|
|
|
|
level = "DEBUG"
|
|
|
|
class = "logging.handlers.RotatingFileHandler"
|
|
|
|
formatter = "standard"
|
|
|
|
filename = "@format {this.log_dir}/mobilizon_bots.log"
|
|
|
|
maxBytes = 52428800
|
|
|
|
backupCount = 500
|
|
|
|
encoding = "utf8"
|
|
|
|
|
|
|
|
[default.logging.root]
|
|
|
|
level = "DEBUG"
|
|
|
|
handlers = ['console', 'logfile']
|
2021-05-02 16:44:03 +02:00
|
|
|
|
|
|
|
[testing]
|
|
|
|
DEBUG = true
|
|
|
|
LOCAL_STATE_DIR = "/tmp/mobots"
|
|
|
|
LOG_DIR = "/tmp/mobots"
|
2021-05-03 19:48:04 +02:00
|
|
|
DB_PATH = ":memory:"
|