mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
client/#75 - Hound
This commit is contained in:
parent
83d97df0db
commit
dfb52778a6
3 changed files with 3 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
|
|
@ -22,5 +22,3 @@ class SlackIntegrationModule(PypeModule, IPluginPaths):
|
|||
return {
|
||||
"publish": [os.path.join(current_dir, "plugins", "publish")]
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue