UNPKG

azury-djs

Version:

Azury-djs, the best NPM Package you can have, with fun Minigames, button interactions, and more! Fun for your bot!

28 lines (24 loc) 685 B
// DJSv13 const Discord = require('discord.js'); const client = new Discord.Client(); const { Calculator } = require('../index'); 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 | Azury Devs', color: '#5865F2', footer: 'Azury Devs', timestamp: true, }, disabledQuery: 'Calculator is disabled!', invalidQuery: 'The provided equation is invalid!', othersMessage: 'Only <@{{author}}> can use the buttons!', }); } }); client.login('DISCORD_BOT_TOKEN');