4.4.2 • Published 2 years ago
discord-gamecord v4.4.2
GAMECORD
Installation
npm install discord-gamecordFeatures
- Super simple and easy to use.
- Beginner friendly.
- Easy to Implement.
- Great support and flexible.
Usage
const { Snake } = require('discord-gamecord')
new Snake({
message: message,
embed: {
title: 'Snake Game',
color: '#7289da',
OverTitle: "Game Over",
},
snake: { head: '🟢', body: '🟩', tail: '🟢' },
emojis: {
board: '⬛',
food: '🍎',
up: '⬆️',
right: '➡️',
down: '⬇️',
left: '⬅️',
},
}).startGame()Examples
const Discord = require('discord.js');
const client = new Discord.Client();
const buttons = require('discord-buttons');
const { Snake } = require('discord-gamecord');
buttons(client);
client.on('ready', async () => {
console.log(`Logged in as ${client.user.tag}!`);
});
client.on('message', async (message) => {
if(message.content === '!snake') {
new Snake({
message: message,
embed: {
title: 'Snake Game',
color: '#7289da',
OverTitle: "Game Over",
},
snake: { head: '🟢', body: '🟩', tail: '🟢' },
emojis: {
board: '⬛',
food: '🍎',
up: '⬆️',
down: '⬇️',
right: '➡️',
left: '⬅️',
}
}).startGame();
}
});
client.login('DISCORD_BOT_TOKEN');Preview
Support
3.4.3
2 years ago
3.4.2
2 years ago
4.4.2
2 years ago
3.4.1
3 years ago
4.4.1
3 years ago
3.4.0
3 years ago
4.4.0
3 years ago
3.3.0
3 years ago
4.3.0
3 years ago
3.2.0
3 years ago
4.2.0
3 years ago
3.1.0
3 years ago
4.1.0
3 years ago
3.0.0
3 years ago
4.0.0
3 years ago
2.1.0
4 years ago
2.0.0
4 years ago
1.1.3-old.6
5 years ago
1.1.3-old.7
5 years ago
1.1.3-old.4
5 years ago
1.1.3-old.5
5 years ago
1.1.4
5 years ago
1.1.3-old.3
5 years ago
1.1.0-old.1
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.0.3-dev.1
5 years ago
1.0.3-dev.0
5 years ago
1.0.5
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago