weky-update
v1.2.0
Published
A fun npm package to play games within Discord with buttons! UPDATED FOR DISCORD.JSV14
Downloads
15
Readme
What is weky?
- A fun npm package to play games within Discord with buttons!
- looking for examples? click here: Examples
- IT IS NOT THE OFFICIAL VERSION, it was not the original developer who updated it
Which games have been updated?
- Guess The Number
- QuickClick
- Fight
- If you want more updated games, feel free to join the support server here
Features
- 🧑 Beginner friendly
- 🎉 Easy to use
- ✨ Simple
- 🔘 Discord Buttons
- 🤖 Supports Discord.js V14 and V12
- and much more!
Install the package 📥
npm install weky-update
Usage 📚
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!'
});
Example ✏️
Discord.js v12.5.3
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');
Discord.js v14 and above
- Guess The Number
- QuickClick
- Fight
- Guess The Pokemon
- If you want more updated games, feel free to join the support server here
Contributing 🤝
- Contributions, issues and feature requests are welcome!
- Feel free to check issues page.
- IT IS NOT THE OFFICIAL VERSION, it was not the original developer who updated it