node-karin 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tools/init.js +1 -1
- package/package.json +2 -1
package/lib/tools/init.js
CHANGED
|
@@ -24,7 +24,7 @@ for (const dir of delList) {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
// 判断是否为第一次使用
|
|
27
|
-
if (!fs.existsSync('./index.js')
|
|
27
|
+
if (!fs.existsSync('./index.js')) {
|
|
28
28
|
// 创建一个index.js文件 以供初次开箱使用,写入默认配置
|
|
29
29
|
fs.writeFileSync('./index.js', `import { Bot } from 'node-karin'
|
|
30
30
|
console.log(Bot.name + '开始初始化~')
|
package/package.json
CHANGED