const { Calculator } = require("weky-update");
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');