Botgart
所属分类:其他
开发工具:TypeScript
文件大小:0KB
下载次数:0
上传日期:2024-01-01 16:51:21
上 传 者:
sh-1993
说明: 博加特
(Botgart)
文件列表:
.run/
api-specs/external/
config/
db/
log/
src/
.dockerignore
.eslintignore
.eslintrc
.foreverignore
.mocharc.json
.nvmrc
.prettierignore
.prettierrc
.typesafe-i18n.json
Dockerfile
openapitools.json
package-lock.json
package.json
tests.tsconfig.json
tsconfig.json
## Installation
### Node
All dependencies and deployment are managed through `node`. So [install that](https://www.npmjs.com/get-npm) and the (
included) *Node Package Manager* `npm` first.
### Dependencies
All dependencies are aggregated in `package.json` and can be installed by using
```shell
npm install
```
with no arguments from the root directory of the project.
### Typescript
Botgart has been written in [Typescript](https://en.wikipedia.org/wiki/TypeScript).
Only ever edit the Typescript source in the `src/` directory, not the Javascript files in `built/`. Even if you do write
plain Javascript (you should not), put it in the `src/` directory. The transpiler will just copy `.js`-files and only
transpile `.ts`-files.
After making your changes, call `npm run build` from the root directory to transpile your code into the `built/`-directory,
which can be run as a Node project (see below).
### Config
The root directory holds a `config/example.config.json`. Rename it to `config.json` and adjust the values inside to your
needs.
#### Token
The bot token is how your app knows as which discord account it should connect.
You can acquire one at the [application section of discord](https://discordapp.com/developers/applications/me).
## Run
You can run your bot by using
```shell
node built/index.js
```
from the root directory of your project.
近期下载者:
相关文件:
收藏者: