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

Versionen:

  1. 0.16.0 - March 20, 2022 (847 KB)
  2. 0.15.1 - March 13, 2022 (844 KB)
  3. 0.15.0 - February 19, 2022 (834 KB)
  4. 0.14.0 - February 14, 2022 (839 KB)
  5. 0.13.4 - February 01, 2022 (835 KB)
  6. 0.0.1 - August 28, 2021 (103 KB)
Zeige alle Versionen (69 total)

Besitzer:

Pushed by:

Autoren:

  • sevenc-nanashi

SHA 256-Prüfsumme:

8d798722e7f3def1c0b97aebebc6d0c34192c0dbf8460d622f9e0a0854630262

Downloads insgesamt 43.711

Für diese Version 753

Gemfile:
= In die Zwischenablage kopieren Kopiert!

installieren:
=

Lizenz:

MIT

Erforderliche Ruby-Version: >= 3.0.0

Requires MFA accounts: true

Links: