Giter Club home page Giter Club logo

piyodore-discord-bot's People

Contributors

konafx avatar

Watchers

 avatar

piyodore-discord-bot's Issues

✨ feat: Commandに付随したButtonを押したinteractionからcommandを取得する

command/.ts の構成だと、commandごとに設定したbuttonをcommand/.tsで取り扱いたい

buttonを押すと、interaction.message.interaction.commandNameからサブコマンドが込みの値が取得される(例:/user create->"user create"

commandで設定したbuttonを押して得たメッセージについてくるbutton(つまり、ツリーの孫メッセージ)からはもはやcommandNameはない。(interaction.message.interationがnull)

customIdのパースをうまくやらないとダメっぽい。jsonにしてやるか?

回答を削除する Delete reply

  • implement
  • test

検討事項

  • 削除できる権限はだれが持つか
    • 回答者は必須だと思う
    • 仮イベント作成者は持つべきか否か
    • サーバー管理者は持つべきか否か
      • 仮イベントがサーバーに属するのであれば持つべき

回答を編集する Edit reply

  • implement
  • test

検討事項

  • 仮イベントごとに修正か候補日ごとか
    • 仮イベントごとであれば、再回答で上書きしたほうがいいか
    • 候補日ごとであれば、1回ごとに参加可能か聞く
  • どちらでも実装・操作は同じような気がする

📚 docs: 今の構想

  • Feature: スケジュール調整機能
    • User Story: 仮イベントを作る
    • User Story: 仮イベントと一緒に候補日を作る
    • User Story: 参加可能かを記入する
    • User Story: 回答状況を随時更新していく
      • できれば、仮イベント作成のメッセージも更新できると嬉しいよね
    • User Story: 候補日から予定日時を確定すると Discordのイベントが作られる
    • User Story: 仮イベント、候補日、回答を1単位でアーカイブする(非削除)
    • User Story: 仮イベントの内容を修正する
    • User Story: 仮イベントを削除する
    • User Story: 仮イベントの候補日を修正する。修正された候補日への回答はリセットする
    • User Story: 回答を修正する
      • 仮イベントごとに修正?候補日ごと?
      • →仮イベントごとなら再回答で上書きすればいいか
      • →候補日ごとなら1回参加可能かどうか聞くだけでOKだね
    • User Story: 回答を削除する
      • 仮イベントごとに修正?候補日ごと?
      • →回答削除は仮イベントごとのほうがユーザーストーリーっぽい?

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.