Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //This is the bots required node modules, certain aspects of the code will not work without this.
- const Discord = require("discord.js");
- const client = new Discord.Client({
- disableEveryone : true,
- fetchAllMembers : true
- });
- const config = require("../../commanddata/config.json");
- const fs = require("fs");
- const snekfetch = require('snekfetch');
- const embedColor = require('../../commanddata/config.json');
- const db = require('quick.db');
- exports.run = async (client, message, args) => {
- let help = new Discord.RichEmbed()
- .setTitle("Work Commands")
- .setDescription("Here is a list of jobs")
- .setColor(client.config.embedcolor)
- .addField("Prostitute", "``nb/work prostitute`` Starts a job as a Prostitute")
- .addField("Constructor", "``nb/work constructor`` Starts a job as a Construction Worker")
- .addField("Programmer", "``nb/work programmer`` Starts a job as a Programmer for EpicGames")
- if(!args[0] || args[0 == "help"]) return message.channel.send(help);
- if (args[0] == 'prostitute') {
- let amount = Math.floor(Math.random() * 500) + 1; // 1-500 random number. whatever you'd like
- let embed = new Discord.RichEmbed()
- .setAuthor(`${message.author.tag}`, message.author.displayAvatarURL)
- .setDescription(`${message.author}, you worked as a prostitute & got payed` + "$" + `${amount}` + " for having sex! :D")
- .setColor(client.config.embedcolor)
- message.channel.send(embed)
- db.add(`money_${message.guild.id}_${message.author.id}`, amount)
- } else if(args[0] == 'constructor') {
- let amount = Math.floor(Math.random() * 500) + 1; // 1-500 random number. whatever you'd like
- let embed = new Discord.RichEmbed()
- .setAuthor(`${message.author.tag}`, message.author.displayAvatarURL)
- .setDescription(`${message.author}, you worked as a constructor & got payed` + "$" + `${amount}` + " Dollars for rebuilding the empire state building.")
- .setColor(client.config.embedcolor)
- message.channel.send(embed)
- db.add(`money_${message.guild.id}_${message.author.id}`, amount)
- } else if(args[0] == 'programmer') {
- let amount = Math.floor(Math.random() * 500) + 1; // 1-500 random number. change to whatever you'd like
- let embed = new Discord.RichEmbed()
- .setAuthor(`${message.author.tag}`, message.author.displayAvatarURL)
- .setDescription(`${message.author}, you worked as a programmer for epicgames, you fixed their broken ass game & earned` + "$" + `${amount}`)
- .setColor(client.config.embedcolor)
- message.channel.send(embed)
- db.add(`money_${message.guild.id}_${message.author.id}`, amount)
- }
- }
- exports.conf = {
- enabled: true,
- guildOnly: false,
- aliases: [],
- permLevel: 0
- };
- exports.help = {
- name: 'work',
- description: 'Start a specified job to earn money',
- usage: 'nb/work',
- permsissions: 'Everyone!',
- group: 'Economy Module'
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement