- A fun npm package to play games within Discord with buttons!
- looking for examples? click here: Examples
- ๐ง Beginner friendly
- ๐ Easy to use
- โจ Simple
- ๐ Discord Buttons
- ๐ค Supports Discord.js V13 and V12
- and much more!
npm install weky
const { Calculator } = require("weky");
await Calculator({
message: message,
embed: {
title: 'Calculator | Weky Development',
color: '#5865F2',
footer: 'ยฉ๏ธ Weky Development',
timestamp: true
},
disabledQuery: 'Calculator is disabled!',
invalidQuery: 'The provided equation is invalid!',
othersMessage: 'Only <@{{author}}> can use the buttons!'
});
const Discord = require('discord.js');
require('@weky/inlinereply');
const client = new Discord.Client();
const disbut = require('discord-buttons');
const { Calculator } = require('weky');
disbut(client);
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 | Weky Development',
color: '#5865F2',
footer: 'ยฉ๏ธ Weky Development',
timestamp: true,
},
disabledQuery: 'Calculator is disabled!',
invalidQuery: 'The provided equation is invalid!',
othersMessage: 'Only <@{{author}}> can use the buttons!',
});
}
});
client.login('DISCORD_BOT_TOKEN');
const Discord = require('discord.js');
const client = new Discord.Client();
const { Calculator } = require('weky');
client.on('ready', async () => {
console.log(`Logged in as ${client.user.tag}`);
});
client.on('messageCreate', async (message) => {
if (message.content === '!calculator') {
await Calculator({
message: message,
embed: {
title: 'Calculator | Weky Development',
color: '#5865F2',
footer: 'ยฉ๏ธ Weky Development',
timestamp: true,
},
disabledQuery: 'Calculator is disabled!',
invalidQuery: 'The provided equation is invalid!',
othersMessage: 'Only <@{{author}}> can use the buttons!',
});
}
});
client.login('DISCORD_BOT_TOKEN');
- Contributions, issues and feature requests are welcome!
- Feel free to check issues page.
this package was created for https://reefbot.xyz copyrights to thier owner