We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instructions = input('请输入你的指令') if '开启自动回复' in Instructions: if AuthReply == True: print('无需重复开启') else: AuthReply = True @itchat.msg_register('Text') def text_reply(msg): # message:取出msg里面的文本消息 message = msg['Text'] # 回复给好友 replay = u'张耀已在电脑上登陆网页微信,但暂时无法进行交流,可以给他发送电脑QQ消息哈' # 主要是一些关键词设置 # if B in A 如果 A中有B的话 if u'干什么' in message: replay = u'在忙呢' elif u'逼' in message: replay = u'含有敏感词汇,请注意言辞' elif u'生气' in message: replay = u'生气对身体不好' elif u'?' in message: replay = u'哈哈,我也不知道' elif u'不理你' in message: replay = u'乖,忙完给你买糖吃' elif u'涛' in message: replay = u'他是我主人' elif u'厉害' in message: replay = u'不不不,辣鸡一个' elif u'你好' in message: replay = u'你好哇' elif u'好吧' in message: replay = u'再见' elif u'测试' in message: replay = u'测试成功' return replay itchat.run(blockThread=False) elif '关闭自动回复' == Instructions: if AuthReply == False: print('您还没开启此功能') elif AuthReply == True: AuthReply = False print('此处应停止itchat.run')
我的项目某个功能的代码如上,现在不知道如何停止itchat.run(),请问有解决办法吗
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Instructions = input('请输入你的指令')
if '开启自动回复' in Instructions:
if AuthReply == True:
print('无需重复开启')
else:
AuthReply = True
@itchat.msg_register('Text')
def text_reply(msg):
# message:取出msg里面的文本消息
message = msg['Text']
# 回复给好友
replay = u'张耀已在电脑上登陆网页微信,但暂时无法进行交流,可以给他发送电脑QQ消息哈'
# 主要是一些关键词设置
# if B in A 如果 A中有B的话
if u'干什么' in message:
replay = u'在忙呢'
elif u'逼' in message:
replay = u'含有敏感词汇,请注意言辞'
elif u'生气' in message:
replay = u'生气对身体不好'
elif u'?' in message:
replay = u'哈哈,我也不知道'
elif u'不理你' in message:
replay = u'乖,忙完给你买糖吃'
elif u'涛' in message:
replay = u'他是我主人'
elif u'厉害' in message:
replay = u'不不不,辣鸡一个'
elif u'你好' in message:
replay = u'你好哇'
elif u'好吧' in message:
replay = u'再见'
elif u'测试' in message:
replay = u'测试成功'
return replay
itchat.run(blockThread=False)
elif '关闭自动回复' == Instructions:
if AuthReply == False:
print('您还没开启此功能')
elif AuthReply == True:
AuthReply = False
print('此处应停止itchat.run')
我的项目某个功能的代码如上,现在不知道如何停止itchat.run(),请问有解决办法吗
The text was updated successfully, but these errors were encountered: