snakemeg
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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);
    })
  }

Readme

Keywords

Package Sidebar

Install

npm i snakemeg

Weekly Downloads

4

Version

2.0.1

License

ISC

Unpacked Size

56.4 kB

Total Files

12

Last publish

Collaborators

  • vnmegumin