Skip to content

Commit

Permalink
fix: 细节优化
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowwarmth committed Nov 9, 2024
1 parent d8f9ad9 commit 9c4023f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 20 deletions.
22 changes: 4 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<a href="https://github.com/rainbowwarmth/KazuhaBot_Newmys"><img src="https://upload-bbs.miyoushe.com/upload/2021/12/05/82642572/3196a8010ff14dd131d5192ba9b9743a_5729765311568100837.jpg?x-oss-process=image/resize,s_600/quality,q_80/auto-orient,0/interlace,1/format,jpg" width="256" height="256" alt="KazuhaBot_NewMys"></a>
</p>
<h1 align = "center">KazuhaBot_NewMys</h1>

[![Node.js Package](https://github.com/rainbowwarmth/KazuhaBot/actions/workflows/npm-publish-github-packages.yml/badge.svg?branch=main)](https://github.com/rainbowwarmth/KazuhaBot/actions/workflows/npm-publish-github-packages.yml)
[![npm version](https://img.shields.io/npm/v/kazuha-bot.svg)](https://www.npmjs.com/package/kazuha-bot)

## 使用方法
Expand Down Expand Up @@ -42,32 +44,16 @@ pnpm i kazuha-bot --registry=https://registry.npmmirror.com
```
// 使用gitee
git clone --depth=1 https://gitee.com/rainbowwarmth/KazuhaBot
git clone --depth=1 https://gitee.com/rainbowwarmth/KazuhaBot -b build
pnpm install -P
// 使用github
git clone --depth=1 https://github.com/rainbowwarmth/KazuhaBot
git clone --depth=1 https://github.com/rainbowwarmth/KazuhaBot -b build
pnpm install -P
```

### 手工下载安装(不推荐)

手工下载安装包,解压后重命名为 KazuhaBot

不能使用git pull 故不推荐

---


## 安装依赖
> 注意只有使用Git安装和手工下载安装才要进行此步,使用PNPM安装的请直接下一步
> 外网环境请修改的本地npm配置.npmrc
```sh
# 直接安装
pnpm install -P
```

## 修改设置文件

打开config文件夹中的config.json,并更改其中的APP_ID和APP_TOKEN为机器人对应ID与TOKEN
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kazuha-bot",
"version": "2.2.1",
"version": "2.2.2",
"description": "QQ频道米游社推送Bot",
"type": "module",
"private": false,
Expand Down
2 changes: 1 addition & 1 deletion src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export async function init() {
kazuha._log.mark(`-------(≡^∇^≡)-------`);
kazuha._log.mark(kazuha.chalk.cyan(kazuha.Bot.name + ' v' + kazuha.Bot.version + '启动中...'))
kazuha._log.mark(kazuha.chalk.greenBright('https://github.com/rainbowwarmth/KazuhaBot_Newmys.git'))
process.title = kazuha.Bot.name + ' v' + kazuha.Bot.version + ' © 2023-2024 ' + '@' + kazuha.Bot.author;
process.title = 'kazuhaBot' + ' v' + kazuha.Bot.version + ' © 2023-2024 ' + '@' + kazuha.Bot.author;
process.env.TZ = "Asia/Shanghai";

await initGlobals();
Expand Down

0 comments on commit 9c4023f

Please sign in to comment.