Giter Club home page Giter Club logo

danoni-bot's Introduction

danoni-bot

ダンおにプレイイベント用のDiscord botです。

コマンド一覧

  • chance: チャンスカードを引く
  • random: ランセレを引く
  • /initialize {password}: DBの初期化
  • /join {name}: 参加者の追加
  • /delete {name}: 参加者の削除
  • /divide {password}: チーム分け
  • /show_members: 参加者確認
  • /game {league} {winner} {loser}: ゲームの登録
  • /result {league}: 結果の確認
  • /next_game {league} {pair} {match name}: 次試合の組分け
    • pair: 数字を入れる、1234なら1-2, 3-4の試合

その他動作

  • CW Editionの1行リザルトに対して情報のまとめ表示
  • ユーザ各自での参加

環境

  • Ruby 2.7.1
  • MySQL 5.7.31

起動手順

  1. botのアカウント作成、設定
  2. MySQLにユーザdanoni-bot、データベースdanoniを追加
  3. インストール
    $ bundle install --path vendor/bundle
    
  4. 環境変数の設定
    $ export DANONI_BOT_PASSWORD={your_password}
    $ export DANONI_BOT_TOKEN={discord_bot_token}
    
  5. 起動
    $ bundle exec ruby main.rb
    

danoni-bot's People

Contributors

superkuppabros avatar

Watchers

 avatar

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.