aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorTheEdgeNK <trey6979@gmail.com>2018-07-11 11:02:17 -0400
committerTheEdgeNK <trey6979@gmail.com>2018-07-11 11:02:17 -0400
commit3b18b66a1e14f142a1b5b5d3c21ae50e486afaa0 (patch)
tree6fb93dc1e9bf5234d68201edbf1385ffc6296a4a /commands
parent96bdf46414fe806a19fa5070148fc4925be007d8 (diff)
downloadPokeBot-3b18b66a1e14f142a1b5b5d3c21ae50e486afaa0.tar.gz
PokeBot-3b18b66a1e14f142a1b5b5d3c21ae50e486afaa0.tar.bz2
PokeBot-3b18b66a1e14f142a1b5b5d3c21ae50e486afaa0.zip
change currency name and command removal
Diffstat (limited to 'commands')
-rw-r--r--commands/Fun/balance.js2
-rw-r--r--commands/Fun/jobs.js6
-rw-r--r--commands/Fun/slots.js6
-rw-r--r--commands/Moderation/timeout.js48
4 files changed, 7 insertions, 55 deletions
diff --git a/commands/Fun/balance.js b/commands/Fun/balance.js
index fd387bc..2c40800 100644
--- a/commands/Fun/balance.js
+++ b/commands/Fun/balance.js
@@ -9,7 +9,7 @@
exports.run = async (bot, msg) => {
const credits = await bot.plugins.economy.get(msg.author.id);
- msg.reply(credits + ' PokeCoins');
+ msg.reply(credits + ' atoms');
};
exports.conf = {
diff --git a/commands/Fun/jobs.js b/commands/Fun/jobs.js
index 3d42fdf..6109ddb 100644
--- a/commands/Fun/jobs.js
+++ b/commands/Fun/jobs.js
@@ -28,12 +28,12 @@ exports.run = (bot, msg) => {
if (bot.dbl.hasVoted(msg.author.id)) {
var creditsEarned = Math.floor(Math.random() * 650);
bot.plugins.economy.add(msg.author.id, creditsEarned);
- msg.channel.send('You ' + jobs[Math.floor(Math.random() * jobs.length)] + '\n\nYou earned ' + creditsEarned.toString() + ' credits.');
+ msg.channel.send('You ' + jobs[Math.floor(Math.random() * jobs.length)] + '\n\nYou earned ' + creditsEarned.toString() + ' atoms.');
}
else {
var creditsEarned = Math.floor(Math.random() * 250);
bot.plugins.economy.add(msg.author.id, creditsEarned);
- msg.channel.send('You ' + jobs[Math.floor(Math.random() * jobs.length)] + '\n\nYou earned ' + creditsEarned.toString() + ' credits.');
+ msg.channel.send('You ' + jobs[Math.floor(Math.random() * jobs.length)] + '\n\nYou earned ' + creditsEarned.toString() + ' atoms.');
}
cooldown.add(msg.author.id);
setTimeout(() => {
@@ -48,5 +48,5 @@ exports.conf = {
exports.help = {
name: 'jobs',
- description: 'Work to add credits to your account.',
+ description: 'Work to add atoms to your account.',
};
diff --git a/commands/Fun/slots.js b/commands/Fun/slots.js
index 0fe5af9..ecd6880 100644
--- a/commands/Fun/slots.js
+++ b/commands/Fun/slots.js
@@ -21,7 +21,7 @@ exports.run = async (bot, msg) => {
];
const balance = await bot.plugins.economy.get(msg.author.id);
- if (balance < 10) return await msg.reply('You don\'t have enough credits (10) to play the slots');
+ if (balance < 10) return await msg.reply('You don\'t have enough atoms (10) to play the slots');
const number1 = slotNumbers[Math.floor(Math.random() * slotNumbers.length)];
const number2 = slotNumbers[Math.floor(Math.random() * slotNumbers.length)];
@@ -31,12 +31,12 @@ exports.run = async (bot, msg) => {
if (number2 == number1 + 1 && number3 == number2 + 1) {
await bot.plugins.economy.add(msg.author.id, 1000);
const balance = await bot.plugins.economy.get(msg.author.id);
- return await msg.channel.send('You won 1000 PokeCoins!\nCurrent Balance: ' + balance + ' \n> ' + emojify(number1, number2, number3));
+ return await msg.channel.send('You won 1000 atoms!\nCurrent Balance: ' + balance + ' \n> ' + emojify(number1, number2, number3));
}
else if (number2 == number3 - 1 && number1 == number2 - 1) {
await bot.plugins.economy.add(msg.author.id, 1500);
const balance = await bot.plugins.economy.get(msg.author.id);
- return await msg.channel.send('You won 1500 PokeCoins!\nCurrent Balance: ' + balance + ' \n> ' + emojify(number1, number2, number3));
+ return await msg.channel.send('You won 1500 atoms!\nCurrent Balance: ' + balance + ' \n> ' + emojify(number1, number2, number3));
}
else {
await bot.plugins.economy.subtract(msg.author.id, 10);
diff --git a/commands/Moderation/timeout.js b/commands/Moderation/timeout.js
deleted file mode 100644
index 2e479ac..0000000
--- a/commands/Moderation/timeout.js
+++ /dev/null
@@ -1,48 +0,0 @@
-/** **************************************
- *
- * Time Out: Plugin for PokeBot that punishes bad boys..
- * Copyright (C) 2018 TheEdge, jtsshieh, Alee
- *
- * Licensed under the Open Software License version 3.0
- *
- * *************************************/
-
-exports.run = async (bot, msg) => {
- if (msg.guild.id != '417088992329334792') return msg.reply ('This is a PokeWorld exclusive command. Sorry!');
-
- if (!msg.member.hasPermission('BAN_MEMBERS')) return msg.reply('You don\'t have permission to put members in time-out..');
- if (!msg.guild.member(bot.user).hasPermission('MANAGE_ROLES')) return msg.reply('I cannot put anyone in time-out.');
-
- const member = msg.mentions.members.first();
- if (!member) return await msg.reply('Who do I put in time-out?');
-
- msg.member.addRole(msg.guild.roles.find('name', 'Timeout'));
-
- const { RichEmbed } = require('discord.js');
- try {
- const embed = new RichEmbed()
- .setColor(0x00ae86)
- .setAuthor(member.user.tag, member.user.avatarURL)
- .setTitle(`Time Out: **${member.user.tag}**`)
- .setDescription(`*${member.user.tag}* was placed in time-out by *${msg.author.tag}*.`)
- .addField('Moderator', msg.author.tag)
- .setTimestamp()
- .setFooter(`${msg.author.tag} put ${member.user.tag} in time-out.`, msg.author.avatarURL);
- const logChannel = await bot.plugins.settings.getStr('logs', msg.guild.id);
- msg.guild.channels.find('id', logChannel).send({ embed });
- }
- catch (err) {
- console.error(err.stack);
- }
-};
-
-exports.conf = {
- aliases: [],
- guildOnly: true,
-};
-
-exports.help = {
- name: 'timeout',
- description: 'Put a user in time-out',
- usage: '@user',
-};