aboutsummaryrefslogtreecommitdiffstats
path: root/slack/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'slack/main.py')
-rw-r--r--slack/main.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/slack/main.py b/slack/main.py
index 667e108..9d31eac 100644
--- a/slack/main.py
+++ b/slack/main.py
@@ -1,20 +1,21 @@
import weechat
-from slack import globals as G
from slack.config import SlackWorkspace
+from .shared import shared
+
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[
+ 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")
- G.workspaces[
+ shared.workspaces[
"wee-slack-test"
].config.api_cookies.value = weechat.config_get_plugin("api_cookie")
- workspace = G.workspaces["wee-slack-test"]
+ workspace = shared.workspaces["wee-slack-test"]
print(workspace)
print(workspace.config.slack_timeout.value)
- print(G.config.color.reaction_suffix.value)
+ print(shared.config.color.reaction_suffix.value)