Code Monkey home page Code Monkey logo

weky-npm's Introduction

Weky


What is weky?

  • A fun npm package to play games within Discord with buttons!
  • looking for examples? click here: Examples

Features

  • ๐Ÿง‘ Beginner friendly
  • ๐ŸŽ‰ Easy to use
  • โœจ Simple
  • ๐Ÿ”˜ Discord Buttons
  • ๐Ÿค– Supports Discord.js V13 and V12
  • and much more!

Install the package ๐Ÿ“ฅ

npm install weky

Usage ๐Ÿ“š

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!'
});

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 v13.1.0

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');

Result ๐Ÿ“ค

Contributing ๐Ÿค

  • Contributions, issues and feature requests are welcome!
  • Feel free to check issues page.

Developers ๐Ÿ‘จโ€๐Ÿ’ป

Disclaimer

this package was created for https://reefbot.xyz copyrights to thier owner

Support โ”

weky-npm's People

Contributors

sujalgoel avatar face-hh avatar chrissch-dev avatar birbified avatar johnsiras avatar rayzdev avatar aryanm830 avatar elijahahianyo avatar adambrangenberg avatar tomato6966 avatar tovade avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.