1.0.6 • Published 4 years ago

discord-scores v1.0.6

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

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!

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago