UNPKG
go-cqhttp
Version:
latest (5.0.0)
5.0.0
4.0.1
4.0.0
3.2.0
3.1.1
3.1.0
3.0.4
3.0.3
3.0.2
3.0.0
2.2.0
2.1.1
2.1.0
2.0.0
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
0.0.4
0.0.3
0.0.2
0.0.1
go-cqhttp
github.com/koishijs/node-gocqhttp
koishijs/node-gocqhttp
go-cqhttp
/
install.js
9 lines
(7 loc)
•
222 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
const
{ existsSync } =
require
(
'fs'
)
const
{ resolve } =
require
(
'path'
)
if
(!
existsSync
(
resolve
(__dirname,
'src'
))) {
/**
@type
{import('./src/install')} */
const
utils
=
require
(
'./lib/install'
) utils.
install
() }