LINE BOT written in Go, using line-bot-sdk-go.
Add Gokabot to your friends from the QR code below, and invite to your groups.
-
Calling
Send examples Response "ごかぼっと", "ごかぼう", "ヒゲ" Random message -
Anime
Send examples Response "今日", "今日のアニメ", "today" Animes in today "昨日", "昨日のアニメ", "yesterday" Animes in yesterday "明日", "明日のアニメ", "tomorrow" Animes in tomorrow "日曜", "日曜のアニメ", "Sunday" Animes in Sunday "今期", "今期のアニメ", "all" Animes in this term "来期", "来期のアニメ", "next" Animes in next term "おすすめ" Recommended animes in today "今期のおすすめ" Recommended animes in this term -
Weather
Send examples Response "天気", "今日の天気" Today's weather in Default "明日の天気" Tomorrow's weather in Default "天気 東京" Today's weather in Tokyo "明日の天気 東京" Tomorrow's weather in Tokyo Now, Default is Tsukuba.
-
Dictionary
Send examples Response "西郷隆盛ってなに", "西郷隆盛って誰?" Informations of "西郷隆盛" in Wikipedia or pixiv or niconico -
Nyokki
Send examples Response "1ニョッキ" Start Nyokki Game -
Omikuji
Send examples Response "おみくじ" Result of Omikuji -
Others
See source code.
- mise: manage tools and tasks
- Docker
- Docker Compose
-
Trust project directory and install tools.
mise trust -q && mise install -
Copy
.env.exampleto.envand fill in your credentials.cp .env.example .env # Edit .env and fill in your credentialsVariable Required for Description LINE_CHANNEL_SECRETDev server, integration test Channel secret from LINE Developers console LINE_CHANNEL_TOKENDev server, integration test Channel access token from LINE Developers console LINE_PUSH_TARGET_IDIntegration test only LINE user ID to receive test push messages -
Run DB migration and seeding
mise setup-db
-
Run development server with hot-reloading
mise dev
Use Dbmate for DB schema migration.
Dbmate is managed by mise.
-
Prepare: Up DB
mise dc-up-db
-
Generate a new migration file
mise dm-new <migration-name>
-
Run any pending migrations
mise dm
-
Roll back the most recent migration
mise dm-rb
-
Show the status of all migrations
mise dm-st
For more commands, see Commands.
