异步糖纸
aioslacker的Python项目详细描述
info: | slacker wrapper for asyncio |
---|
安装
pip install aioslacker
用法
importasynciofromaioslackerimportSlackerTOKEN='xxxxx'asyncdefgo():asyncwithSlacker(TOKEN)asslack:awaitslack.chat.post_message('#general','Hello fellow slackers!')loop=asyncio.get_event_loop()loop.run_until_complete(go())loop.close()