Browse Source

add command help

Andrew Swistak 6 năm trước cách đây
mục cha
commit
d14429e41e
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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