1.2.2 • Published 3 years ago
kumi-games v1.2.2
GAMECORD
Discord Gamecord is a powerful module that allows you to play games within Discord :)
⚙️ Installation
npm i discord-gamecord
✨ Features
- Super simple and easy to use.
- Beginner friendly.
- Easy to Implement.
- Supports Slash Commands.
📚 Usage
const { Snake } = require('discord-gamecord')
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('discord-gamecord');
client.on('messageCreate', async (message) => {
if(message.content === '!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('YOUR_COOL_DISCORD_BOT_TOKEN');
Docs
For more information about the Games and how to use them, refer the Docs!
📷 Preview
❔ Support
1.2.2
3 years ago
1.2.1
3 years ago
1.2.0
3 years ago
1.1.9
3 years ago
1.1.8
3 years ago
1.1.7
3 years ago
1.1.6
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.9
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago