Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lostsnow/keqing
Genshin telegram bot
https://github.com/lostsnow/keqing
Last synced: 29 days ago
JSON representation
Genshin telegram bot
- Host: GitHub
- URL: https://github.com/lostsnow/keqing
- Owner: lostsnow
- License: mit
- Created: 2023-02-19T14:20:35.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-14T10:52:24.000Z (5 months ago)
- Last Synced: 2024-07-14T11:58:35.968Z (5 months ago)
- Language: Go
- Homepage:
- Size: 929 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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