weki

Weki

Usage no npm install needed!

<script type="module">
  import weki from 'https://cdn.skypack.dev/weki';
</script>

README

Weki


What is Weki?

  • A fun npm package to play games within Discord with buttons!
  • looking for examples? click here: Examples

Features

  • 🧑 Beginner friendly
  • 🎉 Easy to use
  • ✨ Simple
  • 🔘 Discord Buttons
  • and much more!

Install the package 📥

npm install weki

Usage 📚

const { Calculator } = require("weki");
await Calculator({
    message: message,
    embed: {
        title: 'Calculator | Weki Development',
        color: '#7289da',
        timestamp: true
    },
    disabledQuery: 'Calculator is disabled!',
    invalidQuery: 'The provided equation is invalid!',
    othersMessage: 'Only <@{{author}}> can use the buttons!'
});

Example ✏️

const Discord = require('discord.js');
require('discord-inline');
const client = new Discord.Client();
require("discord-buttons")(client)
let disbut = require("discord-buttons");
const { Calculator } = require('weki');


client.on('ready', async () => {
    console.log(`Logged in as ${client.user.tag}`);
});

client.on('message', async (message) => {
    if(message.content === '!calculator') {
        await Calculator({
            message: message,
            embed: {
                title: 'Calculator | Weki Development',
                color: '#5865F2',
                timestamp: true,
            },
            disabledQuery: 'Calculator is disabled!',
            invalidQuery: 'The provided equation is invalid!',
            othersMessage: 'Only <@{{author}}> can use the buttons!',
        });
    }
});

client.login('DISCORD_BOT_TOKEN');

Result 📤

Information

𝐈𝐟 𝐲𝐨𝐮 𝐬𝐞𝐞 𝐬𝐨𝐦𝐞𝐭𝐡𝐢𝐧𝐠

message.options.lineReply is not a function

𝐘𝐨𝐮 𝐧𝐞𝐞𝐝 𝐭𝐨 𝐩𝐮𝐭 -require("discord-inline") 𝐢𝐧 𝐲𝐨𝐮𝐫 𝐦𝐚𝐢𝐧 𝐟𝐢𝐥𝐞

Contributing 🤝

  • Contributions, issues and feature requests are welcome!
  • Feel free to check issues page.

Developers 👨‍💻

  • [! </ʂ℘ıƙıɛ>#0001]

Support ❔