リモートデュエルに有用なコマンドを実装しています。
コインを投げます。実行すると、表か裏が出ます。
ポケカとかでも有用です。ポケモンチェック等でも活用ください。
Pipenv使ってます。下記は windows 前提です。
pipenv は pip install pipenv
でインストールして、どうぞ。
$env:PIPENV_VENV_IN_PROJECT = 1; pipenv --python 3.12
pipenv install --dev
pipenv run setup
.envを作っておく。
APP_ID = "YOUR_APPLICATION_ID"
SERVER_ID = "YOUR_SERVER_ID"
BOT_TOKEN = "BOT_TOKEN"
- https://github.com/ker0olos/aws-lambda-discord-bot : 英語のディスコボット作成入門
- https://blog.shikoan.com/discord-bot-lambda-1/ : 日本語情報
- https://note.sarisia.cc/entry/discord-slash-commands/ : 日本語情報2
- https://github.com/keithrozario/Klayers/tree/master : 先人のLayers
- https://api.klayers.cloud/api/v2/p3.8/layers/latest/ap-northeast-1/html : Python 3.8 の Layers。ここに PyNacl が存在するので 3.8 を選択せざるを得なかった
- https://www.reddit.com/r/aws/comments/p1z95f/help_with_python_lambda_pynacl_module_issue : PyNacl は windows 環境でインストールしたものをデプロイしても動作しないよ、という話