azury-games
v2.0.0
Published
Azury-Games, play fun games using your discord bot! (MEANT TO BE A PRIVATE NPM)
Downloads
4
Maintainers
Readme
⚙️ Installation
npm i azury-games
✨ Features
- Super simple and easy to use.
- Beginner friendly.
- Easy to Implement.
- Supports Slash Commands.
📚 Usage
const { Snake } = require('azury-games')
new Snake({
message: message, slash_command: false,
embed: {
title: 'Azury • Snake Game',
color: 'GREEN',
overTitle: 'Azury • Game Over',
},
snake: { head: '🟢', body: '🟩', tail: '🟢' },
emojis: {
board: '⬛',
food: '🍎',
up: '⬆️',
right: '➡️',
down: '⬇️',
left: '⬅️',
},
}).startGame()
📄 Example
const Discord = require('discord.js');
const client = new Discord.Client();
const { Snake } = require('azury-games');
const token = "BOT_TOKEN"
const prefix = "+"
client.on('messageCreate', async (message) => {
if(message.content === ''+prefix+'snake') {
new Snake({
message: message, slash_command: false,
embed: {
title: 'Azury • Snake Game',
color: 'GREEN',
overTitle: 'Azury • Game Over',
},
snake: { head: '🟢', body: '🟩', tail: '🟢' },
emojis: {
board: '⬛',
food: '🍎',
up: '⬆️',
right: '➡️',
down: '⬇️',
left: '⬅️',
},
}).startGame()
}
});
client.login(token);
✏️ Azury Support Server