Project

rubord

0.0
No release in over 3 years
Rubord is a modern library for building Discord bots in Ruby, with support for Gateway, REST, Interactions, and Components v2.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Rubord

Rubord is a modern Ruby library for building Discord bots.

It provides:

  • Gateway (WebSocket)
  • REST API
  • Interactions (Buttons, Modals, Select Menus)
  • Components v2 support

Installation

gem install rubord

Or in your Gemfile:

gem "rubord"

Basic Example

client = Rubord::Client.new(intents: 3276799)

client.on(:ready) do |client|
  puts "Logged in: " + client.username
end

client.on(:message_create) do |message|
  if message.content == "!hello"
    message.reply("Hello!")
  end
end

client.login("Your discord bot token")