当前位置:网站首页>[auto reply or remind assistant] Mom doesn't have to worry about me missing messages any more (10 Line Code Series)
[auto reply or remind assistant] Mom doesn't have to worry about me missing messages any more (10 Line Code Series)
2022-06-10 23:58:00 【Programmer pear】
Preface
author :“ Programmer pear ”
** The article brief introduction **: This article mainly explains the use of wxpy library , Realize automatic reply to information .
** Article source code access **: In order to thank everyone who pays attention to me, the project source code of each article is distributed free of charge
Enjoy drops
Welcome friends give the thumbs-up 、 Collection 、 Leaving a message.
Text
I still remember the family group last year , Because someone's birthday will appear, many people will send messages and blessings see ?
Got it that day n Multiple messages , There are so many messages that I can't disturb them directly , I'm a lazy kind. Basically, I don't get much information back !
Especially in the family group, there are fewer replies , I was accidentally seen by my mother that day , It's impolite to say that I don't reply to any news ,
harm —— Who is still staring at this group every day , We can't get in touch with what the elders are talking about . So this year we are going to develop a small tool
了 , Do as you say ,10 Line code to make a birthday keyword automatic reply or remind the little assistant .

One 、 In preparation
The premise that this gadget can be used is that your wechat can log into the webpage version of wechat , Because of the wxpy The library will call wechat
Page version interface .
1) Reply to fixed messages according to keywords
First , We make a keyword that can recognize the chat of group members in a certain group to reply the corresponding blessing message , For example, when a group message
appear 「 Birthday 」 Related keywords , Will automatically reply 「 Happy birthday, 」 Blessing words like that .
direct show you code:( Set the text to reply to you by yourself )

If more than one group needs to reply , It's like I don't have one on it , Put all the group names on the list , Make one for Circulation
good . After the code runs , In group chat, if you define keywords , The assistant will reply automatically .

2) Reply random messages according to keywords
It's easy to see through the fixed message every time , We can do a few more routines , Then randomly choose a script to reply .

I wrote it briefly 3 Paraphrase , You can write more sets of , The probability of repetition is low , ha-ha .

3) Send blessing picture
In addition to sending text blessings , Of course, we can send some 「 Sand sculpture 」 Blessing picture . Don't name the picture in Chinese , Put it in the same code
Under the table of contents .

such , You can send out pictures and words together .

4) Send a reminder message to the file transfer assistant
If you think the above automatic reply is insincere , You can also remind yourself . When the corresponding keyword appears in the group chat message , Just hair
Send a reminder message to the file transfer assistant .

Keywords appear in the group , Your file transfer assistant will be alerted .

summary
Change the keyword to something else you need , You can make other reminders , I'm not afraid to miss anything , Cool, dropping .
Last , Put the code in the ECS , Run code , Auto reply assistant 24 Hour online service , It's not beautiful .
Follow Xiaobian for more wonderful content ! Remember to click on the portal
It's not easy to make , Remember to connect three times with one button !! If you need packaged source code + Free sharing of materials !! Portal

边栏推荐
猜你喜欢

Ilruntime hotfix framework installation and breakpoint debugging

苹果CMS采集站源码-搭建教程-附带源码-全新源码-开发文档

【Turtle表白合集】“海底月是天上月,眼前人是心上人。”余生多喜乐,长平安~(附3款源码)

Fiddler creates an autoresponder

Easyrecovery15 simple and convenient data recovery tool

LabVIEW和VDM提取色彩和生成灰度图像

都说验证码是爬虫中的一道坎,看我只用五行代码就突破它。

What Fiddler does for testing

LabVIEW使用MathScript Node或MATLAB脚本时出现错误1046

LabVIEW 禁止其他可多核心处理的应用程序在所有核心上执行
随机推荐
[latex] latex vs Code Snippets
Difference between oscilloscope and spectrum analyzer
Error 1046 when LabVIEW uses MathScript node or matlab script
【 pygame Games 】 don't find, Leisure Games Theme come 丨 Bubble Dragon applet - - Leisure Games Development recommendation
curl导入postman报错小记
After deepin20 menu startup option, the self-test indicates that iwlwwifi is stopped
Hyperleger fabric installation
Create millisecond time id in LabVIEW
Baidu quick collection SEO optimization keyword ranking optimization skills
归并排序
【LaTex】latex VS Code snippets(代码片段)
黑马头条丨腾讯薪酬制度改革引争议;英特尔全国扩招女工程师;黑马100%就业真的吗......
【Pygame小游戏】来了来了它来了——这款五子棋小游戏超A的,分享给你的小伙伴儿一起pk吧~
Apple CMS collection station source code - building tutorial - attached source code - new source code - development documents
LabVIEW调用DLL时出现异常0xc0000005代码
30 | 怎么重设消费者组位移?
csdn每日一练——找出最接近元素并输出下标
Leetcode 501: mode dans l'arbre de recherche binaire
LabVIEW执行串行回送测试
OSS stores and exports related content
