Registry / networking / discordrb

discordrb

JSON →
library3.7.2rbrubygemsunverified

A Ruby implementation of the Discord API for building bots and integrations.

gem install discordrb
INSTALL
IMPORT
SIG · DISCORDRB
D
discordrb
networkingrubyv3.7.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Discordrb
require 'discordrb'

Create a simple Discord bot that responds to messages.

require 'discordrb' bot = Discordrb::Bot.new token: 'your_token' bot.message(content: 'Ping!') do |event| event.respond 'Pong!' end bot.run
Debug
Known issues
gotchaRequires a valid Discord bot token and internet access.
fix
Create a bot at https://discord.com/developers/applications and obtain a token.
affects: >= 3.0.0
Upgrade
Version history
3.7.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Amazon
1
OpenAI (training)
1
Resources
discordrb — gem install discordrb · libregistry