Explorar o código

add command help

Andrew Swistak %!s(int64=6) %!d(string=hai) anos
pai
achega
d14429e41e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      bot.rb

+ 2 - 0
bot.rb

@@ -413,6 +413,8 @@ rescue ActiveRecord::RecordNotFound
   error_embed("Item Not Found!")
 end
 
+desc = "Add and remove items from characters' inventories"
+opts = { "item | (-/+) amount | character" => "" }
 inv = Command.new(:inv, desc, opts) do |event, item, amount, name|
   char = Character.find_by!(name: name) if name
   itm = Item.find_by!(name: item) if item