MCPcopy Index your code
hub / github.com/slackapi/python-slack-sdk / send_reply

Method send_reply

integration_tests/rtm/test_issue_569.py:69–81  ·  view source on GitHub ↗
(**payload)

Source from the content-addressed store, hash-verified

67
68 @RTMClient.run_on(event="message")
69 def send_reply(**payload):
70 self.logger.debug(payload)
71 event = payload["data"]
72 if "text" in event:
73 if not str(event["text"]).startswith("Current CPU usage:"):
74 web_client = payload["web_client"]
75 for i in range(0, 3):
76 new_message = web_client.chat_postMessage(
77 channel=event["channel"],
78 text=f"Current CPU usage: {TestRTMClient.cpu_usage} % (test_cpu_usage)",
79 )
80 self.logger.debug(new_message)
81 self.call_count += 1
82
83 def connect():
84 self.logger.debug("Starting RTM Client...")

Callers

nothing calls this directly

Calls 2

debugMethod · 0.45
chat_postMessageMethod · 0.45

Tested by

no test coverage detected