Browse Source

add command help

Andrew Swistak 6 years ago
parent
commit
d14429e41e
1 changed files with 2 additions and 0 deletions
  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