1.0.10 ā€¢ Published 3 years ago

weki v1.0.10

Weekly downloads
-
License
CC-BY-NC-SA-4.0
Repository
-
Last release
3 years ago

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 šŸ‘Øā€šŸ’»

Support ā”