azury-games

2.0.0 • Public • Published

AZURY-GAMES

⚙️ 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

Package Sidebar

Install

npm i azury-games

Weekly Downloads

11

Version

2.0.0

License

GPL-3.0

Unpacked Size

99 kB

Total Files

37

Last publish

Collaborators

  • mipcit1010