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:
= In die Zwischenablage kopieren Kopiert!

installieren:
=

Versionen:

  1. 0.20.0 - September 03, 2022 (912 KB)
  2. 0.19.0 - August 05, 2022 (908 KB)
  3. 0.18.1 - July 05, 2022 (907 KB)
  4. 0.18.0 - June 26, 2022 (907 KB)
  5. 0.17.1 - May 27, 2022 (894 KB)
  6. 0.0.1 - August 28, 2021 (103 KB)
Zeige alle Versionen (75 total)

Besitzer:

Pushed by:

Autoren:

  • sevenc-nanashi

SHA 256-Prüfsumme:

8d798722e7f3def1c0b97aebebc6d0c34192c0dbf8460d622f9e0a0854630262

Downloads insgesamt 87.868

Für diese Version 1.326

Lizenz:

MIT

Erforderliche Ruby-Version: >= 3.0.0

New versions require MFA: true

Links: