RubyGems Navigation menu

discorb 0.0.1

# discorb [![rubydoc](https://img.shields.io/badge/Document-rubydoc.info-blue.svg)](https://rubydoc.info/gems/discorb) [![Gem](https://img.shields.io/gem/dt/discorb?logo=rubygems&logoColor=fff)](https://rubygems.org/gems/discorb) [![Gem](https://img.shields.io/gem/v/discorb?logo=rubygems&logoColor=fff)](https://rubygems.org/gems/discorb) discorb is a Discord API wrapper for Ruby. ## Installation Add this line to your application's Gemfile: ```ruby gem 'discorb' ``` And then execute: $ bundle install Or install it yourself as: $ gem install discorb ## Usage ### Simple ping-pong ```ruby require "discorb" client = Discorb::Client.new client.once :ready do puts "Logged in as #{client.user}" end client.on :message do |_task, message| next if message.author.bot? next unless message.content == "ping" message.channel.post("Pong!") end client.run(ENV["DISCORD_BOT_TOKEN"]) ``` ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/sevenc-nanashi/discorb. ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Gemfile:
= Copier Copié!

installation:
=

Versions:

  1. 0.20.0 - September 03, 2022 (912 ko)
  2. 0.19.0 - August 05, 2022 (908 ko)
  3. 0.18.1 - July 05, 2022 (907 ko)
  4. 0.18.0 - June 26, 2022 (907 ko)
  5. 0.17.1 - May 27, 2022 (894 ko)
  6. 0.0.1 - August 28, 2021 (103 ko)
Voir toutes les versions (75)

Propriétaires:

Pushed by:

Auteurs:

  • sevenc-nanashi

Total de contrôle SHA 256:

8d798722e7f3def1c0b97aebebc6d0c34192c0dbf8460d622f9e0a0854630262

Total de téléchargements 87 952

Pour cette version 1 327

License:

MIT

Version de Ruby requise: >= 3.0.0

New versions require MFA: true

Liens: