removed idea from commands
This commit is contained in:
@ -83,14 +83,14 @@ module.exports = {
|
||||
await this.say(`> ${res.data.slip.advice}`);
|
||||
}
|
||||
},
|
||||
'idea': {
|
||||
desc: `Say a random start up idea.`,
|
||||
async function(from){
|
||||
await this.say('> How about?');
|
||||
let res = await axios.get('https://itsthisforthis.com/api.php?text')
|
||||
await this.say(`> ${res.data}`);
|
||||
}
|
||||
},
|
||||
// 'idea': {
|
||||
// desc: `Say a random start up idea.`,
|
||||
// async function(from){
|
||||
// await this.say('> How about?');
|
||||
// let res = await axios.get('https://itsthisforthis.com/api.php?text')
|
||||
// await this.say(`> ${res.data}`);
|
||||
// }
|
||||
// },
|
||||
'discord': {
|
||||
desc: `Say the CJ discord invite link.`,
|
||||
async function(from) {
|
||||
@ -100,6 +100,8 @@ module.exports = {
|
||||
'dice': {
|
||||
desc: `Roll a die. You can state the max size on the dice. Default is 6.`,
|
||||
async function(from, size){
|
||||
console.log('dice', size)
|
||||
|
||||
size = size || 6;
|
||||
if(!Number.isInteger(Number(size))){
|
||||
this.whisper(from, `${size} is not a whole number...`)
|
||||
@ -123,9 +125,9 @@ module.exports = {
|
||||
'random-player': {
|
||||
desc: `Return a random online player.`,
|
||||
async function(from){
|
||||
let players = bot.getPlayers()
|
||||
let players = this.getPlayers()
|
||||
|
||||
delete players[bot.bot.entity.username]
|
||||
delete players[this.bot.entity.username]
|
||||
|
||||
let keys = Object.keys(players);
|
||||
let player = players[keys[ keys.length * Math.random() << 0]];
|
||||
|
Reference in New Issue
Block a user