grootie.minigames
v1.0.0-beta
Published
A package that lets you play minigames in discord!
Downloads
3
Maintainers
Readme
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');