diff options
Diffstat (limited to 'slack/init.py')
-rw-r--r-- | slack/init.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/slack/init.py b/slack/init.py new file mode 100644 index 0000000..27a3a40 --- /dev/null +++ b/slack/init.py @@ -0,0 +1,20 @@ +import weechat + +from slack.config import SlackWorkspace +from slack.shared import shared + + +async def init(): + print(shared.workspaces) + if "wee-slack-test" not in shared.workspaces: + shared.workspaces["wee-slack-test"] = SlackWorkspace("wee-slack-test") + shared.workspaces[ + "wee-slack-test" + ].config.api_token.value = weechat.config_get_plugin("api_token") + shared.workspaces[ + "wee-slack-test" + ].config.api_cookies.value = weechat.config_get_plugin("api_cookie") + workspace = shared.workspaces["wee-slack-test"] + print(workspace) + print(workspace.config.slack_timeout.value) + print(shared.config.color.reaction_suffix.value) |