ulvis.paste.net

Paste Search Dynamic
Recent pastes
discord.js
  1. const Discord = require("discord.js");
  2. let coins = require("../coins.json");
  3. module.exports.run = async (bot, message, args) => {
  4.  
  5.   if(!coins[message.author.id]){
  6.     coins[message.author.id] = {
  7.       coins: 0
  8.     };
  9.   }
  10.  
  11.   let uCoins = coins[message.author.id].coins;
  12.  
  13.   let coinEmbed = new Discord.RichEmbed()
  14.   .setAuthor(message.author.username)
  15.   .setColor("#15f153")
  16.   .addField("💸 Wallet:", uCoins)
  17.  
  18.   message.channel.send(coinEmbed).then(msg => {msg.delete(4000)});
  19. }
  20. module.exports.help = {
  21.   name: "coins",
  22.   aliases: ["balance", "bal", "bank", "wallet"]
  23. }
Parsed in 0.005 seconds