1.0.0-beta • Published 3 years ago
grootie.minigames v1.0.0-beta
grootie.minigames
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');1.0.0-beta
3 years ago