client/#75 - Hound

This commit is contained in:
Petr Kalis 2021-06-08 11:56:12 +02:00
parent 83d97df0db
commit dfb52778a6
3 changed files with 3 additions and 5 deletions

View file

@ -9,7 +9,7 @@ class CollectSlackFamilies(pyblish.api.InstancePlugin):
Expects configured profile in
Project settings > Slack > Publish plugins > Notification to Slack
Add Slack family to those instance that should be messaged to Slack
"""
order = pyblish.api.CollectorOrder + 0.4999

View file

@ -16,7 +16,7 @@ class IntegrateSlackAPI(pyblish.api.InstancePlugin):
Message template can contain {} placeholders from anatomyData.
"""
order = pyblish.api.IntegratorOrder+0.499
order = pyblish.api.IntegratorOrder + 0.499
label = "Integrate Slack Api"
families = ["slack"]
@ -44,7 +44,7 @@ class IntegrateSlackAPI(pyblish.api.InstancePlugin):
for channel in instance.data["slack_channel"]:
try:
client = WebClient(token=instance.data["slack_token"])
_response = client.chat_postMessage(
_ = client.chat_postMessage(
channel=channel,
text=message
)

View file

@ -22,5 +22,3 @@ class SlackIntegrationModule(PypeModule, IPluginPaths):
return {
"publish": [os.path.join(current_dir, "plugins", "publish")]
}