title: In discord.js, using quick.db I want to create a sell command for a currency system for my bot
body: <p>I want to create a sell command for my bot and I have already made a balance, inventory and buy command using tutorials. I have created ways to get money like a daily command and also a work command. Here is my code for the buy command.</p>
  <pre><code>const Discord = require(&quot;discord.js&quot;)
  const db = require(&quot;quick.db&quot;)
  
  module.exports = {
      name: &quot;buy&quot;,
      description: &quot;buy an item&quot;,
  
      execute: async(client, message, args) =&gt; {
          let author = db.fetch(`money_${message.author.id}`)
  
          if (!args[0]) {
              message.channel.send(&quot;What are you trying to buy?&quot;)
          }
  
          if (args[0] === &quot;sword&quot;) {
              if (author &lt; 200) {
                  message.reply(&quot;You don't have enough ihscoins to buy this item!&quot;)
              } else {
                  let items = db.fetch(message.author.id, { items: [] })
                  db.push(message.author.id, &quot;Sword&quot;)
                  message.channel.send(&quot;You have bought 1x Sword!&quot;)
                  db.subtract(`money_${message.author.id}`, 200)
              }
          }
      }
  }
  </code></pre>
  <p>How would I create a sell command using this?</p>