4.4.2 • Published 1 month ago
discord-gamecord v4.4.2
GAMECORD
Installation
npm install discord-gamecord
Features
- 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
1 month ago
3.4.2
1 month ago
4.4.2
1 month ago
3.4.1
9 months ago
4.4.1
9 months ago
3.4.0
1 year ago
4.4.0
1 year ago
3.3.0
1 year ago
4.3.0
1 year ago
3.2.0
1 year ago
4.2.0
1 year ago
3.1.0
1 year ago
4.1.0
1 year ago
3.0.0
1 year ago
4.0.0
1 year ago
2.1.0
2 years ago
2.0.0
3 years ago
1.1.3-old.6
3 years ago
1.1.3-old.7
3 years ago
1.1.3-old.4
3 years ago
1.1.3-old.5
3 years ago
1.1.4
3 years ago
1.1.3-old.3
3 years ago
1.1.0-old.1
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.0.3-dev.1
3 years ago
1.0.3-dev.0
3 years ago
1.0.5
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