diff --git a/ding--dong-bot.memory-card.json b/ding--dong-bot.memory-card.json index 2590a80503eb0e9f374d3a1688acfe7a70a0c071..27d022a16beb64929b222c774ea0254e63047c9e 100644 --- a/ding--dong-bot.memory-card.json +++ b/ding--dong-bot.memory-card.json @@ -1 +1 @@ -{"\rpuppet\nPUPPET-WECHAT4U":{"PROP":{"uuid":"YfqGMrZLPQ==","uin":"1324338008","sid":"4FdLv4hvCr8i0m+7","skey":"@crypt_6a1ca4c0_cdd2631363a6fb3c8a6d39c786447d37","passTicket":"3EwtPrG9u9h8MuMDN2AyNCvRjxYLRnvEjp9%2BiKprWQLhHZw5ELZUFaDa8XF86DCk5bzeVxgusLUp1wnVKNfmYg%3D%3D","formatedSyncKey":"1_828890363|2_828890565|3_828890352|1000_1707982260","webwxDataTicket":"gSeL6TuQ31aMJfMnQsym5wzB","syncKey":{"Count":4,"List":[{"Key":1,"Val":828891207},{"Key":2,"Val":828891600},{"Key":3,"Val":828891437},{"Key":1000,"Val":1708039860}]}},"CONF":{"origin":"https://wx2.qq.com","baseUri":"https://wx2.qq.com/cgi-bin/mmwebwx-bin","API_jsLogin":"https://login.wx2.qq.com/jslogin?appid=wx782c26e4c19acffb&fun=new&lang=zh-CN&redirect_uri=https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?mod=desktop","API_login":"https://login.wx2.qq.com/cgi-bin/mmwebwx-bin/login","API_synccheck":"https://webpush.wx2.qq.com/cgi-bin/mmwebwx-bin/synccheck","API_webwxdownloadmedia":"https://file.wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetmedia","API_webwxuploadmedia":"https://file.wx2.qq.com/cgi-bin/mmwebwx-bin/webwxuploadmedia","API_webwxpreview":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxpreview","API_webwxinit":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxinit","API_webwxgetcontact":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetcontact","API_webwxsync":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsync","API_webwxbatchgetcontact":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxbatchgetcontact","API_webwxgeticon":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgeticon","API_webwxsendmsg":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendmsg","API_webwxsendmsgimg":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendmsgimg","API_webwxsendmsgvedio":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendvideomsg","API_webwxsendemoticon":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendemoticon","API_webwxsendappmsg":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendappmsg","API_webwxgetheadimg":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetheadimg","API_webwxgetmsgimg":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetmsgimg","API_webwxgetmedia":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetmedia","API_webwxgetvideo":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetvideo","API_webwxlogout":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxlogout","API_webwxgetvoice":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetvoice","API_webwxupdatechatroom":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxupdatechatroom","API_webwxcreatechatroom":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxcreatechatroom","API_webwxstatusnotify":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxstatusnotify","API_webwxcheckurl":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxcheckurl","API_webwxverifyuser":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxverifyuser","API_webwxfeedback":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendfeedback","API_webwxreport":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxstatreport","API_webwxsearch":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsearchcontact","API_webwxoplog":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxoplog","API_checkupload":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxcheckupload","API_webwxrevokemsg":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxrevokemsg","LANG":"zh-CN","EMOTICON_REG":"img\\sclass=\"(qq)?emoji (qq)?emoji([\\da-f]*?)\"\\s(text=\"[^<>(\\s]*\")?\\s?src=\"[^<>(\\s]*\"\\s*","RES_PATH":"/zh_CN/htmledition/v2/","oplogCmdId":{"TOPCONTACT":3,"MODREMARKNAME":2},"SP_CONTACT_FILE_HELPER":"filehelper","SP_CONTACT_NEWSAPP":"newsapp","SP_CONTACT_RECOMMEND_HELPER":"fmessage","CONTACTFLAG_CONTACT":1,"CONTACTFLAG_CHATCONTACT":2,"CONTACTFLAG_CHATROOMCONTACT":4,"CONTACTFLAG_BLACKLISTCONTACT":8,"CONTACTFLAG_DOMAINCONTACT":16,"CONTACTFLAG_HIDECONTACT":32,"CONTACTFLAG_FAVOURCONTACT":64,"CONTACTFLAG_3RDAPPCONTACT":128,"CONTACTFLAG_SNSBLACKLISTCONTACT":256,"CONTACTFLAG_NOTIFYCLOSECONTACT":512,"CONTACTFLAG_TOPCONTACT":2048,"MM_USERATTRVERIFYFALG_BIZ":1,"MM_USERATTRVERIFYFALG_FAMOUS":2,"MM_USERATTRVERIFYFALG_BIZ_BIG":4,"MM_USERATTRVERIFYFALG_BIZ_BRAND":8,"MM_USERATTRVERIFYFALG_BIZ_VERIFIED":16,"MM_DATA_TEXT":1,"MM_DATA_HTML":2,"MM_DATA_IMG":3,"MM_DATA_PRIVATEMSG_TEXT":11,"MM_DATA_PRIVATEMSG_HTML":12,"MM_DATA_PRIVATEMSG_IMG":13,"MM_DATA_VOICEMSG":34,"MM_DATA_PUSHMAIL":35,"MM_DATA_QMSG":36,"MM_DATA_VERIFYMSG":37,"MM_DATA_PUSHSYSTEMMSG":38,"MM_DATA_QQLIXIANMSG_IMG":39,"MM_DATA_POSSIBLEFRIEND_MSG":40,"MM_DATA_SHARECARD":42,"MM_DATA_VIDEO":43,"MM_DATA_VIDEO_IPHONE_EXPORT":44,"MM_DATA_EMOJI":47,"MM_DATA_LOCATION":48,"MM_DATA_APPMSG":49,"MM_DATA_VOIPMSG":50,"MM_DATA_STATUSNOTIFY":51,"MM_DATA_VOIPNOTIFY":52,"MM_DATA_VOIPINVITE":53,"MM_DATA_MICROVIDEO":62,"MM_DATA_SYSNOTICE":9999,"MM_DATA_SYS":10000,"MM_DATA_RECALLED":10002,"MSGTYPE_TEXT":1,"MSGTYPE_IMAGE":3,"MSGTYPE_VOICE":34,"MSGTYPE_VIDEO":43,"MSGTYPE_MICROVIDEO":62,"MSGTYPE_EMOTICON":47,"MSGTYPE_APP":49,"MSGTYPE_VOIPMSG":50,"MSGTYPE_VOIPNOTIFY":52,"MSGTYPE_VOIPINVITE":53,"MSGTYPE_LOCATION":48,"MSGTYPE_STATUSNOTIFY":51,"MSGTYPE_SYSNOTICE":9999,"MSGTYPE_POSSIBLEFRIEND_MSG":40,"MSGTYPE_VERIFYMSG":37,"MSGTYPE_SHARECARD":42,"MSGTYPE_SYS":10000,"MSGTYPE_RECALLED":10002,"MSG_SEND_STATUS_READY":0,"MSG_SEND_STATUS_SENDING":1,"MSG_SEND_STATUS_SUCC":2,"MSG_SEND_STATUS_FAIL":5,"APPMSGTYPE_TEXT":1,"APPMSGTYPE_IMG":2,"APPMSGTYPE_AUDIO":3,"APPMSGTYPE_VIDEO":4,"APPMSGTYPE_URL":5,"APPMSGTYPE_ATTACH":6,"APPMSGTYPE_OPEN":7,"APPMSGTYPE_EMOJI":8,"APPMSGTYPE_VOICE_REMIND":9,"APPMSGTYPE_SCAN_GOOD":10,"APPMSGTYPE_GOOD":13,"APPMSGTYPE_EMOTION":15,"APPMSGTYPE_CARD_TICKET":16,"APPMSGTYPE_REALTIME_SHARE_LOCATION":17,"APPMSGTYPE_TRANSFERS":2000,"APPMSGTYPE_RED_ENVELOPES":2001,"APPMSGTYPE_READER_TYPE":100001,"UPLOAD_MEDIA_TYPE_IMAGE":1,"UPLOAD_MEDIA_TYPE_VIDEO":2,"UPLOAD_MEDIA_TYPE_AUDIO":3,"UPLOAD_MEDIA_TYPE_ATTACHMENT":4,"PROFILE_BITFLAG_NOCHANGE":0,"PROFILE_BITFLAG_CHANGE":190,"CHATROOM_NOTIFY_OPEN":1,"CHATROOM_NOTIFY_CLOSE":0,"StatusNotifyCode_READED":1,"StatusNotifyCode_ENTER_SESSION":2,"StatusNotifyCode_INITED":3,"StatusNotifyCode_SYNC_CONV":4,"StatusNotifyCode_QUIT_SESSION":5,"VERIFYUSER_OPCODE_ADDCONTACT":1,"VERIFYUSER_OPCODE_SENDREQUEST":2,"VERIFYUSER_OPCODE_VERIFYOK":3,"VERIFYUSER_OPCODE_VERIFYREJECT":4,"VERIFYUSER_OPCODE_SENDERREPLY":5,"VERIFYUSER_OPCODE_RECVERREPLY":6,"ADDSCENE_PF_QQ":4,"ADDSCENE_PF_EMAIL":5,"ADDSCENE_PF_CONTACT":6,"ADDSCENE_PF_WEIXIN":7,"ADDSCENE_PF_GROUP":8,"ADDSCENE_PF_UNKNOWN":9,"ADDSCENE_PF_MOBILE":10,"ADDSCENE_PF_WEB":33,"TIMEOUT_SYNC_CHECK":0,"EMOJI_FLAG_GIF":2,"KEYCODE_BACKSPACE":8,"KEYCODE_ENTER":13,"KEYCODE_SHIFT":16,"KEYCODE_ESC":27,"KEYCODE_DELETE":34,"KEYCODE_ARROW_LEFT":37,"KEYCODE_ARROW_UP":38,"KEYCODE_ARROW_RIGHT":39,"KEYCODE_ARROW_DOWN":40,"KEYCODE_NUM2":50,"KEYCODE_AT":64,"KEYCODE_NUM_ADD":107,"KEYCODE_NUM_MINUS":109,"KEYCODE_ADD":187,"KEYCODE_MINUS":189,"MM_NOTIFY_CLOSE":0,"MM_NOTIFY_OPEN":1,"MM_SOUND_CLOSE":0,"MM_SOUND_OPEN":1,"MM_SEND_FILE_STATUS_QUEUED":0,"MM_SEND_FILE_STATUS_SENDING":1,"MM_SEND_FILE_STATUS_SUCCESS":2,"MM_SEND_FILE_STATUS_FAIL":3,"MM_SEND_FILE_STATUS_CANCEL":4,"MM_EMOTICON_WEB":"_web","SYNCCHECK_RET_SUCCESS":0,"SYNCCHECK_RET_LOGOUT":1101,"SYNCCHECK_SELECTOR_NORMAL":0,"SYNCCHECK_SELECTOR_MSG":2,"SYNCCHECK_SELECTOR_MOBILEOPEN":7,"STATE":{"init":"init","uuid":"uuid","login":"login","logout":"logout"},"SPECIALUSERS":["newsapp","fmessage","filehelper","weibo","qqmail","fmessage","tmessage","qmessage","qqsync","floatbottle","lbsapp","shakeapp","medianote","qqfriend","readerapp","blogapp","facebookapp","masssendapp","meishiapp","feedsapp","voip","blogappweixin","weixin","brandsessionholder","weixinreminder","wxid_novlwrv3lqwv11","gh_22b87fa7cb3c","officialaccounts","notification_messages","wxid_novlwrv3lqwv11","gh_22b87fa7cb3c","wxitil","userexperience_alarm","notification_messages"]},"COOKIE":{"pgv_pvi":"7159034969904849000","pgv_si":"s5440472998960080000","wxuin":"1324338008","wxsid":"4FdLv4hvCr8i0m+7","wxloadtime":"1708054031","mm_lang":"zh-CN","webwx_data_ticket":"gSeL6TuQ31aMJfMnQsym5wzB","webwxuvid":"bfa5eb4aab807e628bc1e00db26e58b734ae2ff5ee3e8d3db230af0c10d425976a45cc4c8828948647f32c4ff75694bf","webwx_auth_ticket":"CIsBEKqbtOABGoABVPv3TmjZblwID9WqR6L6moTuF06230vH9K8K23fKlmz7MIivgQjIRNtXyG4Fi8P6uYk1e1Wgam68vX85Vt+fbEzNKDn4cygPb1lkPV2+mIMvI6Nnu19HdO2fuvZ99bO+bGqJQ3h5rpnHveAzMNOhgggdvYVbSo+P2gthY4drKdw="},"user":{"Uin":1324338008,"UserName":"@703d193594da26570fa3a4a74aadcfb064673d0f06140865f692ea29a19b16c7","NickName":"五花肉","HeadImgUrl":"/cgi-bin/mmwebwx-bin/webwxgeticon?seq=2067336023&username=@703d193594da26570fa3a4a74aadcfb064673d0f06140865f692ea29a19b16c7&skey=@crypt_6a1ca4c0_cdd2631363a6fb3c8a6d39c786447d37","Sex":2,"HeadImgFlag":1,"SnsFlag":305}}} \ No newline at end of file +{"\rpuppet\nPUPPET-WECHAT4U":{"PROP":{"uuid":"od6rRKj5lg==","uin":"359299779","sid":"PSLS7ng3RE3W8GDm","skey":"@crypt_87e54572_63e6c684f89ad59ceabd0b888635a102","passTicket":"4GH1gI%2FNzVwNJJ6cESU1q%2FNUuHegidswvKl%2BuucYpuJLWbdM6Cujgvn8GWY9iWbhdfLaOkgLTLVa6L2ZMTAw%2Bg%3D%3D","formatedSyncKey":"1_828890363|2_828890565|3_828890352|1000_1707982260","webwxDataTicket":"gSeZ8UDnzhjQacuwmc+iOId7","syncKey":{"Count":4,"List":[{"Key":1,"Val":858090168},{"Key":2,"Val":858090216},{"Key":3,"Val":858090052},{"Key":1000,"Val":1710219660}]}},"CONF":{"origin":"https://wx2.qq.com","baseUri":"https://wx2.qq.com/cgi-bin/mmwebwx-bin","API_jsLogin":"https://login.wx2.qq.com/jslogin?appid=wx782c26e4c19acffb&fun=new&lang=zh-CN&redirect_uri=https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?mod=desktop","API_login":"https://login.wx2.qq.com/cgi-bin/mmwebwx-bin/login","API_synccheck":"https://webpush.wx2.qq.com/cgi-bin/mmwebwx-bin/synccheck","API_webwxdownloadmedia":"https://file.wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetmedia","API_webwxuploadmedia":"https://file.wx2.qq.com/cgi-bin/mmwebwx-bin/webwxuploadmedia","API_webwxpreview":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxpreview","API_webwxinit":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxinit","API_webwxgetcontact":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetcontact","API_webwxsync":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsync","API_webwxbatchgetcontact":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxbatchgetcontact","API_webwxgeticon":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgeticon","API_webwxsendmsg":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendmsg","API_webwxsendmsgimg":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendmsgimg","API_webwxsendmsgvedio":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendvideomsg","API_webwxsendemoticon":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendemoticon","API_webwxsendappmsg":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendappmsg","API_webwxgetheadimg":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetheadimg","API_webwxgetmsgimg":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetmsgimg","API_webwxgetmedia":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetmedia","API_webwxgetvideo":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetvideo","API_webwxlogout":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxlogout","API_webwxgetvoice":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetvoice","API_webwxupdatechatroom":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxupdatechatroom","API_webwxcreatechatroom":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxcreatechatroom","API_webwxstatusnotify":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxstatusnotify","API_webwxcheckurl":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxcheckurl","API_webwxverifyuser":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxverifyuser","API_webwxfeedback":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendfeedback","API_webwxreport":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxstatreport","API_webwxsearch":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsearchcontact","API_webwxoplog":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxoplog","API_checkupload":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxcheckupload","API_webwxrevokemsg":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxrevokemsg","LANG":"zh-CN","EMOTICON_REG":"img\\sclass=\"(qq)?emoji (qq)?emoji([\\da-f]*?)\"\\s(text=\"[^<>(\\s]*\")?\\s?src=\"[^<>(\\s]*\"\\s*","RES_PATH":"/zh_CN/htmledition/v2/","oplogCmdId":{"TOPCONTACT":3,"MODREMARKNAME":2},"SP_CONTACT_FILE_HELPER":"filehelper","SP_CONTACT_NEWSAPP":"newsapp","SP_CONTACT_RECOMMEND_HELPER":"fmessage","CONTACTFLAG_CONTACT":1,"CONTACTFLAG_CHATCONTACT":2,"CONTACTFLAG_CHATROOMCONTACT":4,"CONTACTFLAG_BLACKLISTCONTACT":8,"CONTACTFLAG_DOMAINCONTACT":16,"CONTACTFLAG_HIDECONTACT":32,"CONTACTFLAG_FAVOURCONTACT":64,"CONTACTFLAG_3RDAPPCONTACT":128,"CONTACTFLAG_SNSBLACKLISTCONTACT":256,"CONTACTFLAG_NOTIFYCLOSECONTACT":512,"CONTACTFLAG_TOPCONTACT":2048,"MM_USERATTRVERIFYFALG_BIZ":1,"MM_USERATTRVERIFYFALG_FAMOUS":2,"MM_USERATTRVERIFYFALG_BIZ_BIG":4,"MM_USERATTRVERIFYFALG_BIZ_BRAND":8,"MM_USERATTRVERIFYFALG_BIZ_VERIFIED":16,"MM_DATA_TEXT":1,"MM_DATA_HTML":2,"MM_DATA_IMG":3,"MM_DATA_PRIVATEMSG_TEXT":11,"MM_DATA_PRIVATEMSG_HTML":12,"MM_DATA_PRIVATEMSG_IMG":13,"MM_DATA_VOICEMSG":34,"MM_DATA_PUSHMAIL":35,"MM_DATA_QMSG":36,"MM_DATA_VERIFYMSG":37,"MM_DATA_PUSHSYSTEMMSG":38,"MM_DATA_QQLIXIANMSG_IMG":39,"MM_DATA_POSSIBLEFRIEND_MSG":40,"MM_DATA_SHARECARD":42,"MM_DATA_VIDEO":43,"MM_DATA_VIDEO_IPHONE_EXPORT":44,"MM_DATA_EMOJI":47,"MM_DATA_LOCATION":48,"MM_DATA_APPMSG":49,"MM_DATA_VOIPMSG":50,"MM_DATA_STATUSNOTIFY":51,"MM_DATA_VOIPNOTIFY":52,"MM_DATA_VOIPINVITE":53,"MM_DATA_MICROVIDEO":62,"MM_DATA_SYSNOTICE":9999,"MM_DATA_SYS":10000,"MM_DATA_RECALLED":10002,"MSGTYPE_TEXT":1,"MSGTYPE_IMAGE":3,"MSGTYPE_VOICE":34,"MSGTYPE_VIDEO":43,"MSGTYPE_MICROVIDEO":62,"MSGTYPE_EMOTICON":47,"MSGTYPE_APP":49,"MSGTYPE_VOIPMSG":50,"MSGTYPE_VOIPNOTIFY":52,"MSGTYPE_VOIPINVITE":53,"MSGTYPE_LOCATION":48,"MSGTYPE_STATUSNOTIFY":51,"MSGTYPE_SYSNOTICE":9999,"MSGTYPE_POSSIBLEFRIEND_MSG":40,"MSGTYPE_VERIFYMSG":37,"MSGTYPE_SHARECARD":42,"MSGTYPE_SYS":10000,"MSGTYPE_RECALLED":10002,"MSG_SEND_STATUS_READY":0,"MSG_SEND_STATUS_SENDING":1,"MSG_SEND_STATUS_SUCC":2,"MSG_SEND_STATUS_FAIL":5,"APPMSGTYPE_TEXT":1,"APPMSGTYPE_IMG":2,"APPMSGTYPE_AUDIO":3,"APPMSGTYPE_VIDEO":4,"APPMSGTYPE_URL":5,"APPMSGTYPE_ATTACH":6,"APPMSGTYPE_OPEN":7,"APPMSGTYPE_EMOJI":8,"APPMSGTYPE_VOICE_REMIND":9,"APPMSGTYPE_SCAN_GOOD":10,"APPMSGTYPE_GOOD":13,"APPMSGTYPE_EMOTION":15,"APPMSGTYPE_CARD_TICKET":16,"APPMSGTYPE_REALTIME_SHARE_LOCATION":17,"APPMSGTYPE_TRANSFERS":2000,"APPMSGTYPE_RED_ENVELOPES":2001,"APPMSGTYPE_READER_TYPE":100001,"UPLOAD_MEDIA_TYPE_IMAGE":1,"UPLOAD_MEDIA_TYPE_VIDEO":2,"UPLOAD_MEDIA_TYPE_AUDIO":3,"UPLOAD_MEDIA_TYPE_ATTACHMENT":4,"PROFILE_BITFLAG_NOCHANGE":0,"PROFILE_BITFLAG_CHANGE":190,"CHATROOM_NOTIFY_OPEN":1,"CHATROOM_NOTIFY_CLOSE":0,"StatusNotifyCode_READED":1,"StatusNotifyCode_ENTER_SESSION":2,"StatusNotifyCode_INITED":3,"StatusNotifyCode_SYNC_CONV":4,"StatusNotifyCode_QUIT_SESSION":5,"VERIFYUSER_OPCODE_ADDCONTACT":1,"VERIFYUSER_OPCODE_SENDREQUEST":2,"VERIFYUSER_OPCODE_VERIFYOK":3,"VERIFYUSER_OPCODE_VERIFYREJECT":4,"VERIFYUSER_OPCODE_SENDERREPLY":5,"VERIFYUSER_OPCODE_RECVERREPLY":6,"ADDSCENE_PF_QQ":4,"ADDSCENE_PF_EMAIL":5,"ADDSCENE_PF_CONTACT":6,"ADDSCENE_PF_WEIXIN":7,"ADDSCENE_PF_GROUP":8,"ADDSCENE_PF_UNKNOWN":9,"ADDSCENE_PF_MOBILE":10,"ADDSCENE_PF_WEB":33,"TIMEOUT_SYNC_CHECK":0,"EMOJI_FLAG_GIF":2,"KEYCODE_BACKSPACE":8,"KEYCODE_ENTER":13,"KEYCODE_SHIFT":16,"KEYCODE_ESC":27,"KEYCODE_DELETE":34,"KEYCODE_ARROW_LEFT":37,"KEYCODE_ARROW_UP":38,"KEYCODE_ARROW_RIGHT":39,"KEYCODE_ARROW_DOWN":40,"KEYCODE_NUM2":50,"KEYCODE_AT":64,"KEYCODE_NUM_ADD":107,"KEYCODE_NUM_MINUS":109,"KEYCODE_ADD":187,"KEYCODE_MINUS":189,"MM_NOTIFY_CLOSE":0,"MM_NOTIFY_OPEN":1,"MM_SOUND_CLOSE":0,"MM_SOUND_OPEN":1,"MM_SEND_FILE_STATUS_QUEUED":0,"MM_SEND_FILE_STATUS_SENDING":1,"MM_SEND_FILE_STATUS_SUCCESS":2,"MM_SEND_FILE_STATUS_FAIL":3,"MM_SEND_FILE_STATUS_CANCEL":4,"MM_EMOTICON_WEB":"_web","SYNCCHECK_RET_SUCCESS":0,"SYNCCHECK_RET_LOGOUT":1101,"SYNCCHECK_SELECTOR_NORMAL":0,"SYNCCHECK_SELECTOR_MSG":2,"SYNCCHECK_SELECTOR_MOBILEOPEN":7,"STATE":{"init":"init","uuid":"uuid","login":"login","logout":"logout"},"SPECIALUSERS":["newsapp","fmessage","filehelper","weibo","qqmail","fmessage","tmessage","qmessage","qqsync","floatbottle","lbsapp","shakeapp","medianote","qqfriend","readerapp","blogapp","facebookapp","masssendapp","meishiapp","feedsapp","voip","blogappweixin","weixin","brandsessionholder","weixinreminder","wxid_novlwrv3lqwv11","gh_22b87fa7cb3c","officialaccounts","notification_messages","wxid_novlwrv3lqwv11","gh_22b87fa7cb3c","wxitil","userexperience_alarm","notification_messages"]},"COOKIE":{"pgv_pvi":"393267811244439900","pgv_si":"s155721965385284450","wxuin":"359299779","wxsid":"PSLS7ng3RE3W8GDm","wxloadtime":"1710220630","mm_lang":"zh-CN","webwx_data_ticket":"gSeZ8UDnzhjQacuwmc+iOId7","webwxuvid":"bfa5eb4aab807e628bc1e00db26e58b734ae2ff5ee3e8d3db230af0c10d425976a45cc4c8828948647f32c4ff75694bf","webwx_auth_ticket":"CIsBEP3v8pYKGoABhA86S79iLM0yRzEV4gzds/Ptp2PJbCPWGfztUaNBHzs9Cs+I2LlsjR32A5MAQq++ZoMknWuIVLNXGgwvA7K3x248y5t8LU8kt4YUvXHyt7nO72fmu22L8m/cBK0mIU5MV4JxVnGqa4Mi/4ewAhtvljnQjsWUYOa7Ytw3gDhFhXs="},"user":{"Uin":359299779,"UserName":"@a79aaee039788180e9714451ef05429c7a5394ebd16ec6e520014d3d170a0f6e","NickName":"濛。","HeadImgUrl":"/cgi-bin/mmwebwx-bin/webwxgeticon?seq=2108010844&username=@a79aaee039788180e9714451ef05429c7a5394ebd16ec6e520014d3d170a0f6e&skey=@crypt_87e54572_63e6c684f89ad59ceabd0b888635a102","Sex":2,"HeadImgFlag":1,"SnsFlag":257,"Signature":"小柠檬🍋8p"}}} \ No newline at end of file diff --git a/index.js b/index.js index 4fd4a64f26d604958ba3d24f1674ecd621899470..3119d89d18c18d85f640beb57b7963bb2b0cbd01 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,7 @@ import { FileBox } from 'file-box' import QrcodeTerminal from 'qrcode-terminal' import axios from "axios" import { WechatyBuilder } from 'wechaty' - +// var http=require('http') // 引入js文件 // const myModule = // require('xdd.js'); @@ -113,7 +113,8 @@ const page = { await room.say('@' + name + "\r\n" + uid + "\r\n" + roomId + "\r\n" + text) // await room.say(uid + ',' + text) //userEvent.sayMP3(text, room, "雷电将军") - userEvent.answer(room, text) + userEvent.sayMP3_xdd(text, room, "雷电将军") + // userEvent.answer(room, text) } else { const alias = await talker.payload.alias; @@ -216,3 +217,211 @@ const page = { } } page.mounted(); + +//用户事件处理 +var wechatyplay = null + +const userEvent = { + setSize: 0, + async init(room, msg) { + let m = this; + //更多api 可以在公众号教程里找到https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzI1NjAxODkzMg== + let arr = ["抽签", "天气", "讲笑话", "讲情话", "梦到", "解第", "动漫图", "去水印-", "历史今天", "星座-", "答案", "转语音-", "黄历"] // + let arrIndex = -1 + let text = "" + arr.some((v, i) => { + let isTrue = msg.indexOf(v) != -1 + if (isTrue) { + arrIndex = i; + text = msg.replace(new RegExp(v, "g"), '') + } + return isTrue + }) + + switch (arrIndex) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + m.weixinChatbot(room, msg); + break; + case 6: + m.animationPic(room, text); + break; + case 7: + m.qsy(room, text); + break; + case 8: + m.history(room); + break; + case 9: + m.constellation(room, text); + break; + case 10: + m.answer(room, text); + break; + case 11: + m.toVoice(room, text); + break; + case 12: + m.naming(room, text); + break; + case 13: + m.hli(room, text); + break; + } + }, + //黄历 + async hli(room, text) { + let m = this; + let msg = await m.ajax(`https://api.lolimi.cn/API/huang/api.php`, {}, "get") + await room.say(msg.data.text + m.sayEnd) + }, + //微信机器人人 + async weixinChatbot(room, text) { + let m = this; + let msg = await m.ajax("https://chatbot.weixin.qq.com/openapi/aibot/" + page.data.token, { + signature: page.data.signature, + query: text, + }, "post") + if (msg?.data?.errcode == 1005) { + await page.methods.wxjqrInit(); + msg = await m.ajax("https://chatbot.weixin.qq.com/openapi/aibot/" + page.data.token, { + signature: page.data.signature, + query: text, + }, "post") + } + let answer = msg.data.answer + if (msg.data.status == "FAQ_RECOMMEND") { + answer = "请问你是不是想问:" + msg.data.options[0].title + } + if (text.indexOf("解第") != -1) { + answer = JSON.parse(answer).multimsg[0] + } + await room.say(answer + m.sayEnd) + }, + //取名 + async naming(room, text) { + let m = this; + var thisArr = text.split("-"); + var sex = thisArr[1] + if (sex == "男") { + sex = 1 + } else if (sex == "女") { + sex = 2 + } else { + sex = 3 + } + let res = await m.ajax( + "https://api.qqsuu.cn/api/dm-cname?apiKey=f6f30d68538bb04dd816e4b4edef8f9f&sex=" + sex + + "&wordnum=2&num=10", null, "get") + var str = "" + res.data.data.list.forEach(v => { + str += v.naming + "," + }) + str = str.substr(0, str.length - 1) + await room.say(str + m.sayEnd) + }, + //转语言 + async toVoice(room, text) { + let m = this; + var text = text.split("-"); + + m.sayMP3(text[0], room, text[1]) + + }, + //答案 + async answer(room, text) { + let m = this; + let res = await m.ajax("https://api.wer.plus/api/bay", null, "get") + + m.sayMP3(res.data.data.comment.split("|")[0], room) + + }, + //星座 + async constellation(room, text) { + let m = this; + let res = await this.ajax("https://v.api.aa1.cn/api/xingzuo/?msg=" + text, null, "get") + await room.say('星座:' + res.data.xz + "\n贵人方位:" + res.data.grfw + "\n贵人星座:" + res.data.grxz + "\n幸运数字:" + + res.data.xyys + "\n爱情运势:" + res.data.aqys + "\n财富运势:" + res.data.cfys + "\n事业运势:" + res.data + .syys + "\n整体运势:" + res.data.ztys + " 提示:" + res.data.ts) + + }, + //历史今天 + async history(room) { + let res = await this.ajax("https://api.oick.cn/lishi/api.php", null, "get") + var radomArr = res.data.result + var randomIndex = Math.floor(Math.random() * radomArr.length) + var obj = radomArr[randomIndex]; + await room.say(obj.date + ":" + obj.title + m.sayEnd) + + }, + //去水印 1 + async qsy(room, text) { + if (text.indexOf("v.douyin.com") != -1) { + // let url=await douyin.init(text); + // await room.say(url) + let res = await this.ajax("http://api.xn--7gqa009h.top/api/dy_jx?a=" + text, {}, "get") + console.log(res.data.url) + await room.say(text + "解析后下载地址:" + res.data.url + m.sayEnd) + + } + }, + //动漫图 0 + async animationPic(room, text) { + let res = await this.ajax("https://api.oick.cn/random/api.php?type=pc", {}, "get") + this.sayImg(room, res.request.protocol + "//" + res.request.host + res.request.path) + await room.say(m.sayEnd) + }, + ajax: ajax, + async sayImg(room, url) { + let m = this; + let fileBox = FileBox.fromUrl(url); + await room.say(fileBox) + }, + //文字转语音 + async sayMP3(text, room, roleName) { + let m = this; + roleName = roleName ? roleName : "雷电将军" + let fileBox = null; //语音、文件 + let res = await m.ajax("http://api.lolimi.cn/API/yyhc/y.php?&msg=" + text + "&speaker=" + roleName, + null, "get") + fileBox = FileBox.fromUrl(res.data.music); + await room.say(fileBox) + //await room.say(m.sayEnd) + }, + //文字转语音 + async sayMP3_xdd(text, room, roleName) { + let m = this; + roleName = roleName ? roleName : "雷电将军" + let fileBox = null; //语音、文件 + // let res = await m.ajax("http://api.lolimi.cn/API/yyhc/y.php?&msg=" + text + "&speaker=" + roleName, null, "get") + // fileBox = FileBox.fromUrl(res.data.music); + // await room.say(fileBox) + //await room.say(m.sayEnd) +//{"text":"我的关注","timestamp":1710149052552,"appid":"bfeaebea192374ec1f220455f8d5f952","token":"7c2ec2fd4244c7fcde88813a499e0994","referer":"https%3A%2F%2Fhome.jd.com%2F"} +//{"code":2001,"message":"接口调用成功!","result":"/voice/3a81b61e/0a/44/0abb144779efeef6ede97412aa57c277.mp3","success":true} +//https://jd.govwza.cn/voice/3a81b61e/0a/44/0abb144779efeef6ede97412aa57c277.mp3 + let res = await ajax("https://jd.govwza.cn/api/services/Accessibility/TTS/Create", + {text:text,timestamp:1710149052552,appid:"bfeaebea192374ec1f220455f8d5f952",token:"7c2ec2fd4244c7fcde88813a499e0994",referer:"https%3A%2F%2Fhome.jd.com%2F"} + , "post") + res.setHeader("content-type","application/json");//可写可不写 + + fileBox = FileBox.fromUrl("https://jd.govwza.cn"+res.result); + await room.say(fileBox) + + }, + async saylink(title, text, room, url, thumbnailUrl) { + const link = new UrlLink({ + description: text, + title: title, + url: 'https://github.com/chatie/wechaty', + thumbnailUrl: 'https://avatars0.githubusercontent.com/u/25162437?s=30&v=4', + }) + await room.say(link) + + }, + sayEnd: "\n----------------\n来至公众号\n公众号 \n开源项" +} \ No newline at end of file