1 Star 3 Fork 1

无言的黑白/wechat-bot-padlocal

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
start.js 1.59 KB
一键复制 编辑 原始数据 按行查看 历史
无言的黑白 提交于 2022-03-15 16:42 . test
/*
* @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));
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sun2ot/wechat-bot-padlocal.git
git@gitee.com:sun2ot/wechat-bot-padlocal.git
sun2ot
wechat-bot-padlocal
wechat-bot-padlocal
main

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385