https://github.com/twosquirrels/gotobot
GoToトラベルのコラ画像生成Bot
https://github.com/twosquirrels/gotobot
Last synced: 12 months ago
JSON representation
GoToトラベルのコラ画像生成Bot
- Host: GitHub
- URL: https://github.com/twosquirrels/gotobot
- Owner: TwoSquirrels
- License: apache-2.0
- Created: 2021-08-29T04:47:59.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-31T14:43:19.000Z (almost 5 years ago)
- Last Synced: 2025-04-04T03:25:40.895Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://discord.com/api/oauth2/authorize?client_id=881401847905124353&permissions=1073777664&scope=bot%20applications.commands
- Size: 1.7 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GoToBot
GoToトラベルのコラ画像を生成するDiscordBot
[招待リンク](https://discord.com/api/oauth2/authorize?client_id=881401847905124353&permissions=1073777664&scope=bot%20applications.commands)
## 使い方
```
/goto {行き先} {英語=行き先を翻訳したもの} {背景色=1BABDE}
```
## 技術
- TypeScript
- [repl.it](https://replit.com/@RomanGames/GoToBot)
- discord.js
- express
- Google Apps Script (for translate)
- Python3
- Pillow
## 動かし方
1. リポジトリをclone
2. `npm i`を叩き`node_modules`をインストール
3. `pip3 install Pillow`を叩きPillowをインストール
4. DiscordBotを作成
5. `.env`ファイルを作成し、`BOT_TOKEN`にDiscordBotのToken、`TRANSLATE_API`に翻訳APIのURL、`BOT_ID`にDiscordBotのIDを指定
6. テスト環境の場合は、`TEST_GUILD`にテスト用ギルドのIDを指定
7. 本番環境の場合は、`VIP`に`,`区切りでVIPユーザーのID、`COOLTIME`にVIPユーザー/テスト環境以外でのコマンドのクールタイ厶を秒単位で指定
8. `npm run regist`を叩きコマンドを登録
9. `npm run start`でBotを起動
10. `Ctrl+C`またはVIPユーザーによる`/shutdown`コマンドでBotを終了
## License
[Apache License, Version 2.0](https://apache.org/licenses/LICENSE-2.0)