grootie.minigames

1.0.0-beta • Public • Published

grootie.minigames

npm

Support Server

Grootie Minigames is a powerful module that allows you to play games within Discord :)

⚙️ Installation

npm i grootie.minigames

Features

  • Super simple and easy to use.
  • Beginner friendly.
  • Easy to Implement.
  • Supports Slash Commands.

📚 Usage

const { Snake } = require('grootie.minigames')

new Snake({
  message: message,
  slash_command: false,
  embed: {
    title: 'Snake Game',
    color: '#5865F2',
    overTitle: 'Game Over',
  },
  snake: { head: '🟢', body: '🟩', tail: '🟢' },
  emojis: {
    board: '⬛', 
    food: '🍎',
    up: '⬆️', 
    right: '➡️',
    down: '⬇️',
    left: '⬅️',
  },
}).startGame()

✏️ Example

Looking for Examples? click here: Examples!

const Discord = require('discord.js');
const client = new Discord.Client();
const { Snake } = require('grootie.minigames');


client.on('messageCreate', async (message) => {
  if(message.content === 'g.snake') {
    new Snake({
      message: message,
      slash_command: false,
      embed: {
        title: 'Snake Game',
        color: '#5865F2',
        OverTitle: 'Game Over',
      },
      snake: { head: '🟢', body: '🟩', tail: '🟢' },
      emojis: {
        board: '⬛',
        food: '🍎',
        up: '⬆️', 
        down: '⬇️',
        right: '➡️',
        left: '⬅️',
      }
    }).startGame();
  }
});

client.login('BOT_TOKEN');

Package Sidebar

Install

npm i grootie.minigames

Weekly Downloads

5

Version

1.0.0-beta

License

GPL-3.0

Unpacked Size

101 kB

Total Files

38

Last publish

Collaborators

  • alwaysluxury