Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pbr1111/wheel-of-names-discord-bot
A wheel of names bot build with discord.js
https://github.com/pbr1111/wheel-of-names-discord-bot
discord discord-bot discord-js discord-js-bot
Last synced: 4 months ago
JSON representation
A wheel of names bot build with discord.js
- Host: GitHub
- URL: https://github.com/pbr1111/wheel-of-names-discord-bot
- Owner: pbr1111
- Created: 2021-07-24T20:58:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-06T09:09:00.000Z (10 months ago)
- Last Synced: 2024-09-20T04:18:49.837Z (4 months ago)
- Topics: discord, discord-bot, discord-js, discord-js-bot
- Language: TypeScript
- Homepage:
- Size: 549 KB
- Stars: 9
- Watchers: 1
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Wheel of names - Discord bot
A wheel of names bot build with discord.js
## Introduction
This bot generates a dynamic spin wheel gif with the options specified as arguments. It uses the `canvas` and `gifencoder` packages to create the spin wheel GIF.
![Example](docs/animation.gif)
## How to use
1. Install the packages with _npm install_.
2. Get your Discord bot token and configure it in your server. Configure the bot with `MESSAGE CONTENT INTENT` and `Send Message` permission.
3. To start the bot use: `TOKEN=yourtoken yarn start` or `TOKEN=yourtoken yarn dev` if you need hot reload.## Available commands
- **!pick**: this command creates the spin wheel with the options passed as arguments separated by commas.
Example: _!pick option1,option2,option3,option4_
## Limitations
The Discord API does not allow to modify the files embedded in a message, so it is necessary to delete and send another message. This produces a strange effect, but it works 😄