A simple package to code with ease

Usage no npm install needed!

<script type="module">
  import leafUtils from 'https://cdn.skypack.dev/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