pbr1111 / wheel-of-names-discord-bot

A wheel of names bot build with discord.js
9 stars 4 forks source link
discord discord-bot discord-js discord-js-bot

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

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

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 😄