mirror of
https://github.com/mii443/rbot.git
synced 2025-08-22 15:45:30 +00:00
Fix max amount of 'del' command
This commit is contained in:
@ -14,8 +14,9 @@ module Bot
|
||||
end
|
||||
|
||||
# メッセージ削除
|
||||
command(:del, usage: 'del <件数>', description: 'メッセージの削除', min_args: 1, max_args: 99) do |event, n|
|
||||
event.channel.prune(n.to_i + 1, true)
|
||||
command(:del, usage: 'del <件数>', description: 'メッセージの削除', min_args: 1) do |event, n|
|
||||
next if (n.to_i > 99)
|
||||
event.channel.prune(n.to_i + 1, false)
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user