MarcTowler / discord-bot

BSD 2-Clause "Simplified" License
2 stars 0 forks source link

Add more mini games #30

Open MarcTowler opened 5 years ago

MarcTowler commented 5 years ago

Leave a comment below with ideas that you want for mini games

Current list:

-Hangman (bot sets the word, whoever guesses the word right gets to pick next word, 1 hour max then the bot)

Redous-UK commented 5 years ago

tic tac toe

Redous-UK commented 5 years ago

coin master - you have the game in your twitch stream....

Redous-UK commented 5 years ago

Guess the number


const Discord = require("discord.js");
module.exports.run = async(bot, message, args) => {

    let guess = Math.floor((Math.Random() * 101) - 1);

    if(!args) {
        return message.channel(`Sorry, you did not put a valid number for the game!`);
    }

    if(isNaN(args)) {
        return message.channel(`Sorry, you need to put a valid number!`);
    }

    message.chan(`${message.author.username}, you were ` + eval(guess + args) + ` away!`)

    return

}

//@mention needs to be enabled for this to work.

module.exports.help = {
    name: "Guess the Number",
    triggers: "guess",
    description: `Mini Game - Guess the Number`,
    role: "everyone"
}```