diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2022-10-25 23:18:27 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:52 +0100 |
commit | cdf3cfe4a2ed8a340ac1a8404e7cd7e604fe3857 (patch) | |
tree | a9a2070e6e4133d0f0d6b8499dbb73cc208f2a18 /slack/main.py | |
parent | e635272b39436b100badec940d83f2f0d4ad2e38 (diff) | |
download | wee-slack-cdf3cfe4a2ed8a340ac1a8404e7cd7e604fe3857.tar.gz |
Add a script to combine the python files
Diffstat (limited to 'slack/main.py')
-rw-r--r-- | slack/main.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/slack/main.py b/slack/main.py new file mode 100644 index 0000000..667e108 --- /dev/null +++ b/slack/main.py @@ -0,0 +1,20 @@ +import weechat + +from slack import globals as G +from slack.config import SlackWorkspace + + +async def init(): + print(G.workspaces) + if "wee-slack-test" not in G.workspaces: + G.workspaces["wee-slack-test"] = SlackWorkspace("wee-slack-test") + G.workspaces[ + "wee-slack-test" + ].config.api_token.value = weechat.config_get_plugin("api_token") + G.workspaces[ + "wee-slack-test" + ].config.api_cookies.value = weechat.config_get_plugin("api_cookie") + workspace = G.workspaces["wee-slack-test"] + print(workspace) + print(workspace.config.slack_timeout.value) + print(G.config.color.reaction_suffix.value) |