taiki-kuraishi / discord-bot-template Goto Github PK
View Code? Open in Web Editor NEWdiscord.pyを使用したdiscord bot開発テンプレート
discord.pyを使用したdiscord bot開発テンプレート
Dockerを用いたpythonの実行環境と
DevContainerの環境構築
.vscode/cspell.json
の作成.vscode/extensions.json
の作成.github/workflows/ci.yml
に追加.pre-commit-config.yaml
に追加サーバーに参加しているユーザ全てのアクティビティを取得し、統計を出力することが技術的に可能か調査する。
Pythonプログラムを作成し、指定されたDiscordチャンネルのチャット履歴を取得し、x軸を時間、y軸を単位時間あたりのチャット件数とするグラフを作成する
DiscordBotリポジトリをテンプレート化する
以降のBot開発は、テンプレート化したリポジトリをForkして、開発を行うことで
環境構築の手間を省く
black
,isort
,pylint
を廃止して、ruff
の追加ローカルのファイルとDev Container内でのディレクトリ構造が異なるため、Gitの追跡が正しく行われていない。
Dev Container立ち上げ
Dev Container内でもGit追跡
GitHub Actionsで使用されるnodeのバージョンが非推奨のためアップデートが必要
.github/workflows/ci.yml
と.github/workflows/Label_sync.yml
の実行
非推奨のバージョンではなく、現在首位称されているバージョンを使用すること
[pre-commit-hooks](https://github.com/taiki-kuraishi/DiscordBot/actions/runs/8312465457/job/22747362452)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
[pre-commit-hooks](https://github.com/taiki-kuraishi/DiscordBot/actions/runs/8312465457/job/22747362452)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
[label-sync](https://github.com/taiki-kuraishi/DiscordBot/actions/runs/8312465455/job/22747380388)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
[label-sync](https://github.com/taiki-kuraishi/DiscordBot/actions/runs/8312465455/job/22747380388)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
issuesテンプレートを定義するmarkdownファイルの作成
pull requestテンプレートを定義するmarkdownファイルの作成
Labelsを定義するjsonファイルの作成
.github/ISSUE_TEMPLATE/task.md
の作成..github/ISSUE_TEMPLATE/fix.md
の作成.github/pull_request_template.md
の作成.github/labels.json
の作成.github/workflows/Label_sync.yml
の作成.pre-commit-config.yaml
の作成
.pre-commit-config.yaml
と同じチェック項目をもつGitHub Actions.github/workflows/ci.yml
の作成A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.