discord-hands-up-for-sq

command module
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

README

discord-hands-up-for-sq

Inspired by hands up! ver.2

使い方

  1. https://discord.com/api/oauth2/authorize?client_id=1168004102282813512&scope=bot から招待

開発

単体テスト
gcloud emulators firestore start --host-port=localhost:5000
# 別ターミナル
go test ./...
テスト実行
gcloud emulators firestore start --host-port=localhost:5000
# 別ターミナル
## 環境変数の設定 (windowsの場合)
$env:BOT_TOKEN="[YOUR BOT TOKEN]"
$env:FIREBASE_PROJECT_ID="test"
$env:FIRESTORE_EMULATOR_HOST="localhost:5000"
go run main.go -guild GUILD_ID
デプロイ
Fly.io

fly.tomlの用意

flyctl deploy -a YOUR_APP_NAME
# wndowsだと上手く動かない? な場合
#   `Status: Image is up to date for gcr.io/paketo-buildpacks/go:latest`で止まる
flyctl deploy -a YOUR_APP_NAME --local-only

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL