代码拉取完成,页面将自动刷新
/*
* @Author: Yi Zhihang
* @Create: 2022-01-28 11:39:08
* @LastEditTime: 2022-02-02 21:30:13
* @Description: 入口文件,启动机器人实例
*/
/*
* _oo0oo_
* o8888888o
* 88" . "88
* (| -_- |)
* 0\ = /0
* ___/`---'\___
* .' \\| |// '.
* / \\||| : |||// \
* / _||||| -:- |||||- \
* | | \\\ - /// | |
* | \_| ''\---/'' |_/ |
* \ .-\__ '-' ___/-. /
* ___'. .' /--.--\ `. .'___
* ."" '< `.___\_<|>_/___.' >' "".
* | | : `- \`.;`\ _ /`;.`/ - ` : | |
* \ \ `_. \_ __\ /__ _/ .-` / /
* =====`-.____`.___ \_____/___.-`___.-'=====
* `=---='
*
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* 佛祖保佑 永不宕机 永无BUG
*/
const login = require("./listeners/on-login");
const message = require("./listeners/on-message");
const scan = require("./listeners/on-scan");
const friendship = require("./listeners/on-friendship");
const roomJoin = require("./listeners/on-room-join");
const roomLeave = require("./listeners/on-room-leave");
const bot = require("./bot");
bot.on("login", login);
bot.on("message", message);
bot.on("scan", scan);
bot.on("friendship", friendship);
bot.on("room-join", roomJoin);
bot.on("room-leave", roomLeave);
bot
.start()
.then(() => console.log("开始登陆微信"))
.catch(e => console.error(e));
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。