Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discordに連携しなくてもいい方法 #1

Open
musaprg opened this issue Jan 31, 2022 · 4 comments
Open

Discordに連携しなくてもいい方法 #1

musaprg opened this issue Jan 31, 2022 · 4 comments

Comments

@musaprg
Copy link
Member

musaprg commented Jan 31, 2022

  • IDをSlashコマンド経由で渡して登録できるようにしたほうがいい?

Discordに連携したくない人もいるらしいので。ただ本人のアカウントかどうか確認するためにkeybase的な方式(gistに特定の値のファイルを作成するとか)で認証をする必要がありそう

@musaprg
Copy link
Member Author

musaprg commented Feb 1, 2022

二段階にすればいいかな。

  1. /invite_me_github request musaprg -> bot respond SHA256 hash of ???
  2. Create gist which contains the hash value above
  3. /invite_me_github verify musaprg https://gist.github.com/musaprg/hashofgist -> bot check the gist and send invitation of org

ただアカウントを所有してるかどうかが簡易的に判定できればいいからハッシュじゃなくてもよさそう。

@musaprg
Copy link
Member Author

musaprg commented Feb 17, 2023

deno deployに上げてWebhook経由でトリガーすればよい メモ

@musaprg
Copy link
Member Author

musaprg commented Jun 17, 2023

Cloudflare Workersでもいけそう

https://github.com/advaith1/activities

@musaprg
Copy link
Member Author

musaprg commented Jun 17, 2023

awesomeすぎる
https://github.com/discord/cloudflare-sample-app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant