-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstart.js
57 lines (48 loc) · 1.59 KB
/
start.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* @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));