Giter Site home page Giter Site logo

wagumi-sbt-discord-bot's Introduction

wagumi-sbt-discord-bot

和組SBTの発行承認や画像生成をするDiscordボットとExpressサーバ

Dev

Install node modules

npm install

Create .env and requests.json

やり方については和組Discordサーバの開発メンバーに問い合わせてください

Run the bot and server

node index.js

注意: 本番サーバでも同じDiscordトークンを使用してボットを稼働しているのでテストの際は本番サーバ側を一時停止するなどの処置が必要

Production

pm2 start pm2.config.js

wagumi-sbt-discord-bot's People

Contributors

tksohishi avatar tomohisaobata avatar ikisuke avatar ukishima avatar

Stargazers

 avatar

Watchers

 avatar Kostas Georgiou avatar

wagumi-sbt-discord-bot's Issues

SBTがmintされた時にSBT Admin専用チャンネルに通知する

概要

SBTがmintされたときにSBT Adminロール専用のチャンネルに通知する

詳細

成功した場合

mintが成功したということを通知。それに応じてSBT AdminがSBTメタデータの作成、更新、承認を迅速に行うことができる。

失敗した場合

mintが失敗したということとその原因について通知。必要な対処ができるように調査可能にする。

SBT画像差し替え作業

概要

ぎむさんとaraimonoさんに作成いただいた新しいSBT画像テンプレートを適用する。

詳細

エンドポイント /image で作成しているSBT画像のSVGファイルに使われるベースの画像を差し替える。それに伴いユーザ名、アイコンが表示される場所も微調整が必要かもしれない。

Discord議論フォーラムチャンネル

https://discord.com/channels/914960638365810748/1092870643969691758/1092870643969691758

自動通知機能を作成

動機

/signを 行なった後、対象のユーザーに対してmintができるようになったことを自動的に通知するように設定したい。

方法

https://github.com/wagumi/wagumi-sbt-discord-bot/blame/72f5cdcc31b0b56011167f83271572ab7f919fa7/index.js#L375

  1. registerを行なった際に、ユーザーのidを管理しておく
  2. /signをadminが行う
    a. 対象のユーザーにsbtチャンネルでメンションを行う
    b. 管理しているidのリストをリセット

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.