DarkBoy-js / ez-games.js

MIT License
3 stars 2 forks source link

ez-games.js

Usage 📕

const ezgames = require('ez-games.js') client.on('message', async message => { if(!message.guild) return; if(message.content.toLowerCase().startsWith('speed')) {

let data = await ezgames.speed(message.author.id, message.guild.id, message.author.displayAvatarURL({ format: 'png'}), client.user.username) /**

} else { message.channel.send(Incorrect the right word is ${word.toLowerCase()}) db.add(loses_${message.author.id}, 1) } }) } })

- __Get User Points__
```js
client.on('message',  async message => {
  if(message.content.toLowerCase().startsWith('points')) {
   if(!message.guild) return;
   let data = await ezgames.points(message.author.id)
   /**
    * total => user points  
    * wins => user wins
    * loses => user loses
    */
   message.channel.send(`Total Points: ${data.total}`)
  }
})

Why ez-games.js