Giter Site home page Giter Site logo

discord-bot-template's People

Contributors

taiki-kuraishi avatar

Watchers

 avatar

discord-bot-template's Issues

Github Actionsで使用されるnodeのバージョンが非推奨

概要

GitHub Actionsで使用されるnodeのバージョンが非推奨のためアップデートが必要

再現方法

.github/workflows/ci.yml.github/workflows/Label_sync.ymlの実行

期待する挙動

非推奨のバージョンではなく、現在首位称されているバージョンを使用すること

GitHub Actions warnings

[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/

Dev Container内でのGit追跡不具合

概要

ローカルのファイルとDev Container内でのディレクトリ構造が異なるため、Gitの追跡が正しく行われていない。

再現方法

Dev Container立ち上げ

期待する挙動

Dev Container内でもGit追跡

DiscordBotリポジトリをテンプレート化

概要

DiscordBotリポジトリをテンプレート化する
以降のBot開発は、テンプレート化したリポジトリをForkして、開発を行うことで
環境構築の手間を省く

タスク

  • リポジトリの名前の変更
  • black,isort,pylintを廃止して、ruffの追加

issue,prテンプレートの作成、labelsの定義ファイルの作成

概要

issuesテンプレートを定義するmarkdownファイルの作成
pull requestテンプレートを定義するmarkdownファイルの作成
Labelsを定義するjsonファイルの作成

タスク

  • タスクに関するissueテンプレート.github/ISSUE_TEMPLATE/task.mdの作成
  • 修正事項に関するissueテンプレート..github/ISSUE_TEMPLATE/fix.mdの作成
  • pull requestテンプレート.github/pull_request_template.mdの作成
  • ラベルの定義を行う.github/labels.jsonの作成
  • また、ラベルの反映を行うGitHub Actions.github/workflows/Label_sync.ymlの作成
  • 以下のチェック項目を満たす.pre-commit-config.yamlの作成
    • check-added-large-files
    • check-json
    • check-merge-conflict
    • check-toml
    • check-yaml
    • end-of-file-fixer
    • trailing-whitespace
  • また、.pre-commit-config.yamlと同じチェック項目をもつGitHub Actions.github/workflows/ci.ymlの作成

Dockerを用いたPythonとDevContainer環境構築

概要

Dockerを用いたpythonの実行環境と
DevContainerの環境構築

タスク

  • Dockerを用いたpythonの実行環境
  • DevContainerの環境構築
  • cspellの設定ファイル.vscode/cspell.jsonの作成
  • ワークスペースの推奨拡張機能ファイル.vscode/extensions.jsonの作成
  • pythonのリンター、フォーマッターを.github/workflows/ci.ymlに追加
  • pythonのリンター、フォーマッターを.pre-commit-config.yamlに追加

過去のチャット履歴をグラフ化する

概要

Pythonプログラムを作成し、指定されたDiscordチャンネルのチャット履歴を取得し、x軸を時間、y軸を単位時間あたりのチャット件数とするグラフを作成する

タスク

  • Pythonプログラムを作成し、指定されたDiscordチャンネルのチャット履歴を取得し、x軸を時間、y軸を単位時間あたりのチャット件数とするグラフを作成する

要件

  • グラフを画像ファイルとして出力する
  • グラフ生成と同時に、対応するCSVファイルも出力する
  • CSVファイルからもグラフを再生成可能な機能を実装する

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.