https://github.com/falcao-g/falgames
Falgames is a powerful npm package designed to help others create awesome discord bots
https://github.com/falcao-g/falgames
discord-bot discord-game discord-js discord-lib library minigames
Last synced: 10 months ago
JSON representation
Falgames is a powerful npm package designed to help others create awesome discord bots
- Host: GitHub
- URL: https://github.com/falcao-g/falgames
- Owner: falcao-g
- License: mit
- Created: 2023-11-18T21:00:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-19T17:32:40.000Z (about 1 year ago)
- Last Synced: 2025-08-26T17:53:57.737Z (10 months ago)
- Topics: discord-bot, discord-game, discord-js, discord-lib, library, minigames
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/falgames
- Size: 536 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
FALGAMES
> **Falgames is a helpful package to enhance your discord bot with fun and interactive minigames :)**
## **✨ Why Falgames?**
- Easy to use & beginner friendly.
- Supports both message and slash commands.
- Customizable to fit your bot's style.
- 18 different minigames to choose from.
## **⚙️ Installation**
Please note that Node v18+ and Discord.js v14+ is required.
```bash
npm i falgames
```
or
```bash
deno add @falcao/falgames
```
## 📷 Preview

## **📚 Usage**
Starting a game with Falgames is as easy as the following example:
```js
const { Snake } = require("falgames") // or import { Snake } from "falgames"
const Game = new Snake({
message: message,
isSlashGame: false,
embed: {
title: "Snake Game",
overTitle: "Game Over",
scoreText: "**Score:**",
color: "#551476",
},
emojis: {
board: "⬛",
up: "⬆️",
down: "⬇️",
left: "⬅️",
right: "➡️",
},
snake: { head: "🟢", body: "🟩", tail: "🟢", over: "💀" },
foods: ["🍎", "🍇", "🍊", "🫐", "🥕", "🥝", "🌽"],
stopButton: "Stop",
timeoutTime: 60000,
playerOnlyMessage: "Only {player} can use these buttons.",
})
Game.startGame()
Game.on("gameOver", (result) => {
console.log(result) // => { result... }
})
```
Slash commands are also supported, just set the `isSlashGame` option to `true` and the message option to `interaction`:
```js
const { Snake } = require("falgames")
const Game = new Snake({
message: interaction,
isSlashGame: true,
//...
})
```
Make sure to check out the [examples](examples) folder for more examples.
## **📜 Credits**
This package is directed inspired by the [Gamecord](https://www.npmjs.com/package/discord-gamecord) package.