module
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Jan 16, 2023
License: MIT
Opens a new window with license information.
README
¶
少林便當
一個提醒 dinbendon.net 服務有可訂購項目的 Telegram 機器人。
編譯
-
安裝 Go (https://go.dev/doc/install)
-
抓下專案
$ git clone https://github.com/wolftotem4/shaolin-ben-don.git
-
切換目錄
$ cd shaolin-ben-don
-
復製 .env.example
至 .env
-
編輯 .env
ACCOUNT=(帳號)
PASSWORD=(密碼)
APP_DEBUG=false
TELEGRAM_TOKEN=(申請的 Telegram token)
-
編譯
$ go build ./cmd/bot
-
執行
$ ./bot
Directories
¶
cmd
|
|
|
|
|
|
internal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.