mirror of
https://github.com/UniverseDevGroup/PokeBot.git
synced 2025-01-22 17:32:00 -05:00
alottathings
This commit is contained in:
parent
ade1acf708
commit
3543715ea8
4 changed files with 52 additions and 72 deletions
|
@ -66,6 +66,6 @@ exports.conf = {
|
|||
};
|
||||
|
||||
exports.help = {
|
||||
name: 'slots',
|
||||
name: 'gamble',
|
||||
description: 'Develop a gambling addiction by playing Slots!',
|
||||
};
|
|
@ -1,36 +0,0 @@
|
|||
/** **************************************
|
||||
*
|
||||
* Get Credits: Plugin for PokeBot that gives you credits.
|
||||
* Copyright (C) 2018 TheEdge, jtsshieh, Alee
|
||||
*
|
||||
* Licensed under the Open Software License version 3.0
|
||||
*
|
||||
* *************************************/
|
||||
const cooldown = new Set();
|
||||
|
||||
exports.run = (bot, msg) => {
|
||||
if (cooldown.has(msg.author.id)) return msg.reply('You have claimed credits too recently');
|
||||
|
||||
if (bot.dbl.hasVoted(msg.author.id)) {
|
||||
bot.plugins.economy.add(msg.author.id, 100);
|
||||
msg.reply('Since you upvoted the bot, here is 100 credits.');
|
||||
}
|
||||
else {
|
||||
bot.plugins.economy.add(msg.author.id, 25);
|
||||
msg.reply('Added 25 credits.');
|
||||
}
|
||||
cooldown.add(msg.author.id);
|
||||
setTimeout(() => {
|
||||
cooldown.delete(msg.author.id);
|
||||
}, 3600000);
|
||||
};
|
||||
|
||||
exports.conf = {
|
||||
aliases: [],
|
||||
guildOnly: true,
|
||||
};
|
||||
|
||||
exports.help = {
|
||||
name: 'getcredits',
|
||||
description: 'Add credits to your account.',
|
||||
};
|
51
commands/Fun/jobs.js
Normal file
51
commands/Fun/jobs.js
Normal file
|
@ -0,0 +1,51 @@
|
|||
/** **************************************
|
||||
*
|
||||
* Get Credits: Plugin for PokeBot that gives you credits.
|
||||
* Copyright (C) 2018 TheEdge, jtsshieh, Alee
|
||||
*
|
||||
* Licensed under the Open Software License version 3.0
|
||||
*
|
||||
* *************************************/
|
||||
const cooldown = new Set();
|
||||
|
||||
exports.run = (bot, msg) => {
|
||||
if (cooldown.has(msg.author.id)) return msg.reply('You have worked too recently');
|
||||
|
||||
const jobs = [
|
||||
"started a BitCoin farm",
|
||||
"pissed for an elderly woman",
|
||||
"became a doctor and illegally sold organs",
|
||||
"extracted eggs from elderly women",
|
||||
"became a bus driver",
|
||||
"started working for Universe Dev Group",
|
||||
"programmed a Discord bot",
|
||||
"made a crowdfunding campaign",
|
||||
"became a news anchor",
|
||||
"flooded Amsterdam",
|
||||
"became YouTube famous.",
|
||||
]
|
||||
|
||||
if (bot.dbl.hasVoted(msg.author.id)) {
|
||||
|
||||
}
|
||||
else {
|
||||
bot.plugins.economy.add(msg.author.id, (Math.random() * Math.floor(250)));
|
||||
var creditsEarned = (Math.random() * Math.floor(250));
|
||||
bot.plugins.economy.add(msg.author.id, creditsEarned);
|
||||
msg.reply('You worked and ' + jobs[Math.floor(Math.random() * jobs.length())] + '\n\nYou earned ' + creditsEarned.toString() + 'credits.');
|
||||
}
|
||||
cooldown.add(msg.author.id);
|
||||
setTimeout(() => {
|
||||
cooldown.delete(msg.author.id);
|
||||
}, 3600000);
|
||||
};
|
||||
|
||||
exports.conf = {
|
||||
aliases: [],
|
||||
guildOnly: true,
|
||||
};
|
||||
|
||||
exports.help = {
|
||||
name: 'jobs',
|
||||
description: 'Work to add credits to your account.',
|
||||
};
|
|
@ -1,35 +0,0 @@
|
|||
/** **************************************
|
||||
*
|
||||
* TriggerEgg: Plugin for PokeBot that manages community events.
|
||||
* Copyright (C) 2018 TheEdge, jtsshieh, Alee
|
||||
*
|
||||
* Licensed under the Open Software License version 3.0
|
||||
*
|
||||
* *************************************/
|
||||
|
||||
exports.run = async (bot, msg) => {
|
||||
if (!['242775871059001344', '247221105515823104', '236279900728721409', '269516487566426112'].includes(msg.author.id)) {
|
||||
msg.reply('Nope! You need the person who created this bot to use this command.');
|
||||
}
|
||||
else {
|
||||
if (Math.random() > 0.5) {
|
||||
msg.channel.send(':egg: **Egg with regular battle sequence sent!**');
|
||||
msg.guild.channels.find('name', 'pokeegghunt').send(':egg: **An egg is available!** First two people to type egg gets to battle!');
|
||||
}
|
||||
else {
|
||||
const gym = msg.guild.channels.find('id', '417138941880434699').children.random();
|
||||
msg.channel.send(':egg: **Egg sent with gym battle sequence cent!**');
|
||||
msg.guild.channels.find('name', 'pokeegghunt').send(':egg: **An egg is available!** *Someone needs to battle for it though...* Go to <#' + gym.id + '> to get it. In 5 minutes, the person holding the gym gets the egg!');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
exports.conf = {
|
||||
aliases: [],
|
||||
guildOnly: true,
|
||||
};
|
||||
|
||||
exports.help = {
|
||||
name: 'triggeregg',
|
||||
description: 'Sends an egg out for players to collect',
|
||||
};
|
Loading…
Reference in a new issue