Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lostsnow/keqing

Genshin telegram bot
https://github.com/lostsnow/keqing

Last synced: 29 days ago
JSON representation

Genshin telegram bot

Awesome Lists containing this project

README

        

# Keqing

Genshin telegram bot

## Database

### Schema

new schema

```shell
go run -mod=mod entgo.io/ent/cmd/ent new --target db/schema
```

generate entity

```shell
go generate ./db
```

### Migration

install atlas

```shell
go install ariga.io/atlas/cmd/atlas@master
```

update migrations hash

```shell
go run main.go migrate hash
```

generate migrations

```shell
go run main.go migrate generate --name
```

lint migrations

```shell
go run main.go migrate lint --latest 1
```

apply migrations

```shell
go run main.go migrate apply
```

## Translation

install gotext cmd

```shell
go install golang.org/x/text/cmd/gotext@master
```

generate catalog

```shell
go generate -v ./pkg/i18n
```

## Thanks

* Character guide: https://www.miyoushe.com/ys/collection/642956
* genshin-atlas: https://github.com/Nwflower/genshin-atlas
* Yunzai-Bot: https://gitee.com/Le-niao/Yunzai-Bot
* LittlePaimon: https://github.com/CMHopeSunshine/LittlePaimon
* Character curve: https://www.miyoushe.com/ys/collection/1880046