UNPKG

wechaty-face-carton

Version:
29 lines 957 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const wechaty_1 = require("wechaty"); const index_js_1 = require("../src/index.js"); const name = 'wechat-carton'; const bot = wechaty_1.WechatyBuilder.build({ name, puppet: 'wechaty-puppet-wechat', puppetOptions: { uos: true } }); async function onMessage(msg) { console.log('msgid', msg.id); } bot.on('message', onMessage); bot .use((0, index_js_1.WechatyFaceCartonPlugin)({ maxuser: 20, secretId: '腾讯secretId', secretKey: '腾讯secretKey', allowUser: ['Leo_chen'], allowRoom: ['测试1', '微信每日说'], quickModel: true, tipsword: '卡通', // 私聊发送消息,触发照片卡通化提示 如果直接发送图片,默认进入图片卡通化功能,不填则当用户初次发送文字消息时不做任何处理 })); bot.start() .catch((e) => console.error(e)); //# sourceMappingURL=index.js.map