Socket
Socket
Sign inDemoInstall

discord-scores

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    discord-scores

manage reaction points for your Discord server


Version published
Maintainers
1
Created

Readme

Source

DiscordScores

const client = new Discord.Client()

Start using

Simple use:

const score = new DiscordScores( client, '👍' )

score.on( 'add', event => {

    // 👍 is add (event.emoji)
    // by event.user 
    // on event.message
    // in event.channel
    // for event.message.author

})

With value:

const score = new DiscordScores( client, { '👍': 1 } )

score.on( 'remove', event => {

    // 👍 is remove
    // The score of message.author drops by 1 (event.value)

})

Multi entries:

const score = new DiscordScores( client, [
    { '👍': 1 }, 
    { '👎': -1 } 
])

score.on( 'remove', event => {

    // 👎 is remove
    // The score of message.author increases by 1 (the reverse of this value)

})

Simple multi entries:

const score = new DiscordScores( client, ['👍','👎'])

score.on( 'add', event => {

    // 👍 is add
    // Anyway...

})

It's up to you to do the overlay!

  • Stockage in database
  • Anti cheat for double accounts
  • Your personnal values and emojis

Custom emojis are accepted!

Keywords

FAQs

Last updated on 10 Jan 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc