Advertisement
ninja-gen

Work

Nov 1st, 2019
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //This is the bots required node modules, certain aspects of the code will not work without this.
  2. const Discord = require("discord.js");
  3. const client = new Discord.Client({
  4.   disableEveryone : true,
  5.   fetchAllMembers : true
  6. });
  7.  
  8. const config = require("../../commanddata/config.json");
  9. const fs = require("fs");
  10. const snekfetch = require('snekfetch');
  11. const embedColor = require('../../commanddata/config.json');
  12. const db = require('quick.db');
  13.  
  14. exports.run = async (client, message, args) => {
  15.  
  16. let help = new Discord.RichEmbed()
  17.      .setTitle("Work Commands")
  18.      .setDescription("Here is a list of jobs")
  19.      .setColor(client.config.embedcolor)
  20.      .addField("Prostitute", "``nb/work prostitute`` Starts a job as a Prostitute")
  21.      .addField("Constructor", "``nb/work constructor`` Starts a job as a Construction Worker")
  22.      .addField("Programmer", "``nb/work programmer`` Starts a job as a Programmer for EpicGames")
  23.  
  24.   if(!args[0] || args[0 == "help"]) return message.channel.send(help);
  25.  
  26.    if (args[0] == 'prostitute') {
  27.  
  28.         let amount = Math.floor(Math.random() * 500) + 1; // 1-500 random number. whatever you'd like
  29.  
  30.         let embed = new Discord.RichEmbed()
  31.         .setAuthor(`${message.author.tag}`, message.author.displayAvatarURL)
  32.         .setDescription(`${message.author}, you worked as a prostitute & got payed` + "$" + `${amount}` + " for having sex! :D")
  33.         .setColor(client.config.embedcolor)
  34.        
  35.    
  36.         message.channel.send(embed)
  37.         db.add(`money_${message.guild.id}_${message.author.id}`, amount)
  38.     } else if(args[0] == 'constructor') {
  39.         let amount = Math.floor(Math.random() * 500) + 1; // 1-500 random number. whatever you'd like
  40.  
  41.         let embed = new Discord.RichEmbed()
  42.         .setAuthor(`${message.author.tag}`, message.author.displayAvatarURL)
  43.         .setDescription(`${message.author}, you worked as a constructor & got payed` + "$" +  `${amount}` + " Dollars for rebuilding the empire state building.")
  44.         .setColor(client.config.embedcolor)
  45.        
  46.    
  47.         message.channel.send(embed)
  48.         db.add(`money_${message.guild.id}_${message.author.id}`, amount)
  49.     } else if(args[0] == 'programmer') {
  50.         let amount = Math.floor(Math.random() * 500) + 1; // 1-500 random number. change to whatever you'd like
  51.  
  52.         let embed = new Discord.RichEmbed()
  53.         .setAuthor(`${message.author.tag}`, message.author.displayAvatarURL)
  54.         .setDescription(`${message.author}, you worked as a programmer for epicgames, you fixed their broken ass game & earned` + "$" + `${amount}`)
  55.         .setColor(client.config.embedcolor)
  56.        
  57.    
  58.         message.channel.send(embed)
  59.         db.add(`money_${message.guild.id}_${message.author.id}`, amount)
  60.   }
  61. }
  62.  
  63. exports.conf = {
  64.   enabled: true,
  65.   guildOnly: false,
  66.   aliases: [],
  67.   permLevel: 0
  68. };
  69.  
  70. exports.help = {
  71.   name: 'work',
  72.   description: 'Start a specified job to earn money',
  73.   usage: 'nb/work',
  74.   permsissions: 'Everyone!',
  75.   group: 'Economy Module'
  76. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement