1.1.1 • Published 6 years ago

discorddice v1.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

DiscordDice

An Discord.js extension, used for gambling.

Usage

This is an example of a bot using DiscordDice module:

const Discord = require('discord.js');
const client = new Discord.Client();

var discorddice = require('discorddice');

client.on('message', message => {
    if (message.author.bot) return; //this will stop responding to bots

    if(message.content === '.dice') { // this will check if the message equals with '.dice'
        discorddice.dice(message.author); // the argument needs to be the message autor, because the module is adding author details in the resulting embed.
    }

});

client.login('YourSuperSecretTokenHere-VerySecret');