MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / send_msg

Function send_msg

script/shell_push.py:57–63  ·  view source on GitHub ↗
(channels, data)

Source from the content-addressed store, hash-verified

55
56
57def send_msg(channels, data):
58 for channel in channels.split(','):
59 try:
60 obj = public.init_msg(channel)
61 obj.send_msg(data['msg'])
62 except:
63 pass
64
65
66if __name__ == '__main__':

Callers 1

push_msgFunction · 0.85

Calls 2

splitMethod · 0.45
send_msgMethod · 0.45

Tested by

no test coverage detected