leaf-utils

1.1.3 • Public • Published

leaf-utils


discordBadge downloadsBadge versionBadge

About

Leaf-utils is a simple package to code with ease.

⚙️ Installation

Node.js 16.6.0 or newer is required.

npm install leaf-utils

📗 Usage

const { TicTacToe } = require('leaf-utils');

await TicTacToe({
            message: message,
            slash_command: false,
            time: 300000,
            opponent: message.mentions.users.first(),
            embed: {
                title: 'Tic Tac Toe',
                color: 'RED'
            },
            challenge: {
                acceptButton: 'Accept',
                denyButton: 'Deny',
            },
            emojis: {
                xEmoji: '❌',
                oEmoji: '🔵',
            },
            colors: {
                xEmoji: 'DANGER',
                oEmoji: 'PRIMARY',
            },
            noUser: 'You must mention someone',
            acceptMessage: '{{player}} has challenged you {{opponent}}',
            cancelMessage: '{{opponent}} refused to have a fight with you!',
            endMessage: 'Challenge not accepted in time',
            authorOnly: 'You can\'t use these buttons',
        })

✏️ Examples

If you are looking for examples check My GitHub

Help

If you need help, please don't hesitate to join our Discord Server.

🔗 Links

Package Sidebar

Install

npm i leaf-utils

Weekly Downloads

40

Version

1.1.3

License

CC BY-NC-ND 4.0

Unpacked Size

268 kB

Total Files

30

Last publish

Collaborators

  • notleaf