monitor.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:premeStock 作者: supthunder 项目源码 文件源码
def slackMsg(item,color,link, size):
    # line 101

    if slack_token == "":
        return
    sc = SlackClient(slack_token)

    text = item+"\n"
    text += color+'\n'
    text += size.title()+'\n'
    text += link+'\n'
    text += "Restock!"+'\n'
    text += str(datetime.utcnow().strftime('%H:%M:%S.%f')[:-3])

    sc.api_call(
      "chat.postMessage",
      channel="#test",
      text=text
    )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号