Meltryllis

Results 3 issues of Meltryllis

如题,有时候群友们一看起色图来就停不下来了,影响到正常聊天了,有群友建议增加一个指定某个群在某个时间段内使用的功能

@bot.on(GroupMessage) def on_group_message(event: GroupMessage): if str(event.message_chain) == '来点涩图': setu_response = requests.get(api_setu) setu_data = setu_response.json() img_url = setu_data['data'][0]['urls']['original'] print(img_url) return bot.send(event, MessageChain([Image(url=img_url), Plain('pid:'+str(setu_data['data'][0]['pid'])+'\n'+'作者:'+str(setu_data['data'][0]['author'])+'\n'+'标题:'+str(setu_data['data'][0]['title']))]))