0xGizmolab / djs-games

A package for discord.js mini games which can be used in your bots
https://docs.gizmolab.xyz/npm/games
MIT License
41 stars 10 forks source link

change guessTheNumber file to #6

Closed KainesLaw closed 3 years ago

KainesLaw commented 3 years ago

change from

const djsGames = require('djs-games') const guessTheNumber = new djsGames.guessTheNumber() guessTheNumber.startGame(message)

to

const djsGames = require('djs-games') const GuessTheNumber = new djsGames.GuessTheNumber() GuessTheNumber.startGame(message)

because djsGames.guessTheNumber is not a constructor.

gizmo-dev commented 3 years ago

Fixed it! Its now const djsGames = require('djs-games') const guessTheNumber = new djsGames.GuessTheNumber() guessTheNumber.startGame(message)