wechaty-face-carton
Version:
27 lines • 870 B
JavaScript
import { WechatyBuilder } from 'wechaty';
import { WechatyFaceCartonPlugin } from '../src/index.js';
const name = 'wechat-carton';
const bot = 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(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