Skip to content

Commit

Permalink
リドミ更新と.envの表現かえた
Browse files Browse the repository at this point in the history
  • Loading branch information
alter334 committed Oct 15, 2024
1 parent 53e7b7e commit ec694e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion env.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
# はじめに sh env.sh を実行してください
echo "export TRAQ_BOT_TOKEN=\"(ここにbottokenを入力)\"\nexport TRAQ_BOT_ID=\"(ここにbotidを入力)\"">.env
echo "export TRAQ_BOT_TOKEN=\"(ここにBotAccessTokenを入力)\"\nexport TRAQ_BOT_ID=\"(ここにbotidを入力)\"">.env
7 changes: 7 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@ traQBotをgolangで制作する場合のテンプレートです
環境変数を登録する`.env`ファイルの生成のためにシェルスクリプトを用いています。`sh env.sh`等のコマンドで実行してください

生成された`.env`の中に各種token等を入力してください

## 走らせ方

0. BotConsoleでBotを作る
2. トークンなどの環境変数をセットする
1. `go run *.go`する
1. エラー出てなかったら動いてます

0 comments on commit ec694e5

Please sign in to comment.