Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dodgers Discord Bot

ドジャースの試合情報を提供するDiscordボット

機能

  • !dodgers コマンドで今日の試合情報を表示
    • 対戦カード
    • 試合開始時間 (日本時間)
    • 試合状況
    • スコア (試合中の場合)

技術スタック

  • Python 3.10
  • Discord.py
  • FastAPI
  • Docker

環境構築

  1. リポジトリをクローン
git clone https://github.com/your-repo/dodgers-bot.git
cd dodgers-bot
  1. 環境変数の設定
cp .env.example .env
# .envファイルを編集
  1. 依存関係のインストール
pip install -r requirements.txt
  1. 開発サーバーの起動
uvicorn src.server:app --reload

Dockerでの実行

docker build -t dodgers-bot .
docker run -p 8000:8000 --env-file .env dodgers-bot

デプロイ (Northflank)

  1. Northflankに新しいサービスを作成
  2. ソースとしてGitHubリポジトリを選択
  3. ビルドオプションでDockerfileを選択
  4. 環境変数を設定
  5. デプロイ

開発

# テストの実行
pytest

# コードフォーマット
black .
isort .

ライセンス

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages