integrations.slack.config module¶
integrations/slack/config.py
- class integrations.slack.config.SvcConfig¶
Bases:
BaseSection,IntegrationsConfigslack用個別設定値
- __init__(_parser=None, _command_dispatcher=<factory>, _keyword_dispatcher=<factory>, main_conf=None, channel_config=None, slash_command='/mahjong', badge_degree=False, badge_status=False, badge_grade=False, separate=False, channel_id=None, plotting_backend='matplotlib', comparison_word='成績チェック', comparison_alias=<factory>, search_channel=<factory>, search_after=7, search_wait=180, thread_report=True, reaction_ok='ok', reaction_ng='ng', ignore_userid=<factory>, channel_limitations=<factory>, bot_id='', tab_var=<factory>)¶
- Parameters:
_parser (ConfigParser | None)
_command_dispatcher (dict[str, Any])
_keyword_dispatcher (dict[str, Any])
main_conf (ConfigParser | None)
channel_config (Path | None)
slash_command (str)
badge_degree (bool)
badge_status (bool)
badge_grade (bool)
separate (bool)
channel_id (str | None)
plotting_backend (Literal['matplotlib', 'plotly'])
comparison_word (str)
comparison_alias (list[str])
search_channel (list[str])
search_after (int)
search_wait (int)
thread_report (bool)
reaction_ok (str)
reaction_ng (str)
ignore_userid (list[str])
channel_limitations (list[str])
bot_id (str)
tab_var (dict[str, Any])
- Return type:
None
- bot_id: str = ''¶
ボットID
- channel_limitations: list[str]¶
SQLが実行できるチャンネルリスト(カンマ区切りで設定)
未定義はすべてのチャンネルでSQLが実行できる
- comparison_alias: list[str]¶
データ突合スラッシュコマンド別名(カンマ区切りで設定)
- comparison_word: str = '成績チェック'¶
データ突合コマンド呼び出しキーワード
- ignore_userid: list[str]¶
投稿を無視するユーザのリスト(カンマ区切りで設定)
- reaction_ng: str = 'ng'¶
DBに取り込んだが正確な値ではない可能性があるときに付けるリアクション
- reaction_ok: str = 'ok'¶
DBに取り込んだ時に付けるリアクション
- search_after: int = 7¶
データ突合時対象にする日数
- search_channel: list[str]¶
テータ突合時に成績記録キーワードを検索するチャンネル名(カンマ区切りで設定)
- search_wait: int = 180¶
指定秒数以内にポストされているデータを突合対象から除外する
- slash_command: str = '/mahjong'¶
スラッシュコマンド名
- tab_var: dict[str, Any]¶
ホームタブ用初期値
- thread_report: bool = True¶
スレッド内にある得点報告の扱い
True: スレッド内の点数報告も取り込む
False: スレッド内の点数報告は無視する