Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aniket091/gamecord

Discord Gamecord is a powerful npm package with a collection of minigames for your discord bot :)
https://github.com/aniket091/gamecord

discord-bot discord-gamecord discord-games discord-js gamecord hacktoberfest mini-games

Last synced: 5 days ago
JSON representation

Discord Gamecord is a powerful npm package with a collection of minigames for your discord bot :)

Awesome Lists containing this project

README

        

# **GAMECORD**


gamecord



npm


Discord Server

> **Discord Gamecord is a powerful npm package with a collection of minigames for your discord bot :)**

## **⚙️ Installation**
**For discord.js v13 use `npm i discord-gamecord@v3-lts`**
```
npm i discord-gamecord@latest
```

## **✨ Features**

- Easy to use.
- Beginner friendly.
- Slash Commands Games.
- Supports Discord.js v13 & v14.

## **📚 Usage**
```js
const { Snake } = require('discord-gamecord');

const Game = new Snake({
message: message,
isSlashGame: false,
embed: {
title: 'Snake Game',
overTitle: 'Game Over',
color: '#5865F2'
},
emojis: {
board: '⬛',
food: '🍎',
up: '⬆️',
down: '⬇️',
left: '⬅️',
right: '➡️',
},
stopButton: 'Stop',
timeoutTime: 60000,
snake: { head: '🟢', body: '🟩', tail: '🟢', over: '💀' },
foods: ['🍎', '🍇', '🍊', '🫐', '🥕', '🥝', '🌽'],
playerOnlyMessage: 'Only {player} can use these buttons.'
});

Game.startGame();
Game.on('gameOver', result => {
console.log(result); // => { result... }
});
```

## **📷 Preview**

## **❔ Support**
Discord