4.4.2 • Published 1 year 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 year ago
3.4.2
1 year ago
4.4.2
1 year ago
3.4.1
2 years ago
4.4.1
2 years ago
3.4.0
2 years ago
4.4.0
2 years ago
3.3.0
2 years ago
4.3.0
2 years ago
3.2.0
2 years ago
4.2.0
2 years ago
3.1.0
2 years ago
4.1.0
2 years ago
3.0.0
3 years ago
4.0.0
3 years ago
2.1.0
3 years ago
2.0.0
4 years ago
1.1.3-old.6
4 years ago
1.1.3-old.7
4 years ago
1.1.3-old.4
4 years ago
1.1.3-old.5
4 years ago
1.1.4
4 years ago
1.1.3-old.3
4 years ago
1.1.0-old.1
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.0.3-dev.1
4 years ago
1.0.3-dev.0
4 years ago
1.0.5
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago