![](https://camo.githubusercontent.com/ff0fac5a5f81797b3c99f669e669dcc3f6a951491c2d22f25b60d7a8b6d21f16/68747470733a2f2f63646e2e646973636f72646170702e636f6d2f617661746172732f3830393439363138363930353136353833342f37646266303263623738326337313131623831376633323963616330323537612e706e67)
- 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!
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');
![](https://camo.githubusercontent.com/5f71b427de3ad8974c2085506dc0c5f42781503993dc7bed97fa6b5bca54e86a/68747470733a2f2f692e696d6775722e636f6d2f444564684848642e706e67)
- Contributions, issues and feature requests are welcome!
- Feel free to check issues page.
![](https://camo.githubusercontent.com/015a8f5bda105e5101ce3150afd872b77d0be4c074e41df256827f38b2e5051d/68747470733a2f2f696e7669646765742e737769746368626c6164652e78797a2f414e7a42726b63585a79)