Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 :)
- Host: GitHub
- URL: https://github.com/aniket091/gamecord
- Owner: aniket091
- License: mit
- Created: 2021-08-08T10:38:30.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-24T10:48:42.000Z (4 months ago)
- Last Synced: 2024-12-17T22:06:30.704Z (5 days ago)
- Topics: discord-bot, discord-gamecord, discord-games, discord-js, gamecord, hacktoberfest, mini-games
- Language: JavaScript
- Homepage: https://discord-gamecord.js.org/
- Size: 159 KB
- Stars: 101
- Watchers: 3
- Forks: 38
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# **GAMECORD**
> **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**