Skip to content

Commit

Permalink
Adjust minimum versions
Browse files Browse the repository at this point in the history
We now require the latest discordrb, alongside Ruby 3.0 and above.
  • Loading branch information
spotlightishere committed Apr 19, 2022
1 parent 991e091 commit a762e96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ However, feel free to use it if you want, just don't be surprised when it doesn'
# Creating a bot with Commandrb

## Requirements
- Ruby 2.4+ (2.6+ is recommended)
- [discordrb](https://github.com/discordrb/discordrb) 3.0+
- Ruby 3.0+
- [discordrb](https://github.com/shardlab/discordrb) 3.3+

## Install
You can do this by one of two ways:
Expand Down Expand Up @@ -37,11 +37,9 @@ cbot = CommandrbBot.new(
}
)

cbot.add_command(:ping,
code: proc { |event,args|
event.respond('Pong!')
}
)
cbot.add_command(:ping) do |event, args|
event.respond('Pong!')
end

cbot.bot.run
```
Expand Down
2 changes: 1 addition & 1 deletion commandrb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |s|
s.homepage =
'https://github.com/Yuuki-Discord/commandrb'
s.license = 'MIT'
s.add_runtime_dependency 'discordrb', '~> 3.1', '>= 3.1.0'
s.add_runtime_dependency 'discordrb', '~> 3.3', '>= 3.3.0'
s.metadata = {
'rubygems_mfa_required' => 'true'
}
Expand Down

0 comments on commit a762e96

Please sign in to comment.