Betting

Betting Example -

const { bet } = require('jelly-djs')

const game = await bet(message, bot)

    switch (game.output) {

        case 'Win':
            // do win stuff here, you can disable normal win embeds and send your own embeds too.

            break;

        case 'Tie':

            // do tie stuff here

            break;

        case 'Lose':
        
            //do anytyhing if you Loose.

            break;

    }

Required Parameters -

Parameter -

Type

Description

Message

Your message object

Client

Your client object

Optional Parameters -

Parameter

Type

Description

Default

resultEmbed

If set to true, then it will send embeds on win, if false, it wont.

true

Betting with options -

Last updated

Was this helpful?