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).

Versies:

  1. 0.17.0 - May 21, 2022 (887 KB)
  2. 0.16.0 - March 20, 2022 (847 KB)
  3. 0.15.1 - March 13, 2022 (844 KB)
  4. 0.15.0 - February 19, 2022 (834 KB)
  5. 0.14.0 - February 14, 2022 (839 KB)
  6. 0.0.1 - August 28, 2021 (103 KB)
Toon alle versies (70 totaal)

Eigenaren:

Pushed by:

Authors:

  • sevenc-nanashi

SHA 256 checksum:

8d798722e7f3def1c0b97aebebc6d0c34192c0dbf8460d622f9e0a0854630262

Total downloads 44.431

Voor deze versie 762

Gemfile:
= Copy to clipboard Copied!

Installeer:
=

Licentie:

MIT

Required Ruby Version: >= 3.0.0

Requires MFA accounts: true

Links: