2.0.1 • Published 4 years ago

snakemeg v2.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Snakemeg

Snakemeg te dá mais configurabilidade que a Snakecord.

Instalação

npm install snakemeg

Exemplo

const initGame = require('snakemeg');

const snakeGame = new initGame({
    title: 'Snake Game',
    color: "GREEN",
    field: "⬛",
    fruit: "🍎",
    animal: "🐍",
    thumbnail: message.author.avatarURL(),
    timestamp: false,
    gameOverTitle: "Game Over"
});

client.on('message', message => {
    if(!message.content.startsWith(config.prefix) || message.author.bot) return;

    const args = message.content.slice(config.prefix.length).trim().split(/ +/);
    const command = args.shift().toLowerCase();

   if(command === 'snake' || command === 'snakegame') {
        return snakeGame.newGame(message);
    })
  }
2.0.1

4 years ago

2.0.0

4 years ago

1.2.8

4 years ago

1.0.7

4 years ago