Skip to content

birbified/weky-npm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install with: npm i weky

This is my first npm package, small things, big fun xd im working on it.

Got errors or questions? Join our support server

Examples

Fight 👊

const oppenent = message.mentions.users.first();
if (!oppenent) return message.channel.send(`Please mention who you want to fight`);
const { fight } = require('weky');
const x = new fight({
    client: client,
    message: message,
    acceptMessage: 'Click to fight with <@' + message.author + '>', //message sent to see if opponent accepts
    challenger: message.author, //NOT CHANGEABLE
    opponent: message.mentions.users.first(),  //NOT CHANGEABLE
    hitButtonText: 'HIT', //Hit button text (Custom)
    hitButtonColor: 'red', //Hit button color (Custom)
    healButtonText: 'HEAL', //Heal button text (Custom)
    healButtonColor:  'green', //Heal button color (Custom)
    cancelButtonText: 'CANCEL', //Cancel button text (Custom)
    cancelButtonColor: 'blurple', //Cancel button color (Custom)
});
x.start();

Win: Lose:

Fast Type ⌨️

const { FastType } = require('weky');
const game = new FastType({
    message: message,
    winMessage: "GG you won!", //message sent when user types perfectly
    sentence: 'some string', //sentence-to-be-typed
    loseMessage: 'Lost ;(', //message sent when user misspell it
    time: 50000, //time that user has in ms
    startMessage: 'Good Luck!' //message sent when user starts playing
});
game.start();

Output

Sudo 😳

const { sudo } = require('weky');
const user = message.mentions.members.first();
const msg = args.slice(1).join(" ");
const xd = new sudo({
    message: message,
    text: msg,
    member: user,
});
xd.start();

Output

Shuffle Guess ❓

var randomWords = require('random-words');
const word = randomWords();

const { ShuffleGuess } = require('weky');
const game = new ShuffleGuess({
              message: message,
              word: word, //or a simple word
              winMessage: "GG you won!", //message sent when user's message matches with the word
              colorReshuffleButton: 'green', //color of the reshuffle button (regen)
              messageReshuffleButton: 'reshuffle', //text of the reshuffle button (regen)
              colorCancelButton: 'red', //color of the cancel button (exit, quit, stop)
              messageCancelButton: 'cancel', //text of the cancel button
              client: client
});
game.start();
//REQUIRES THE  MODULE "discord-buttons" INSTALLED!
//ERRORS? Join our server above
=======

With win With cancel

Randomize String

const weky = require('weky');
let food = ["🍏","🍐","🍋","🍌","🍉","🍇","🫐"];
let foodButRandom = weky.randomizeString(food);
console.log(foodButRandom);
/*output:
Some random string from the food array
*/

Randomize Number

const weky = require('weky');
let randomNumber = weky.randomizeNumber(100,1000);
console.log(randomNumber);
/*output:
Some random number between 100 and 1000
*/

Flip

const weky = require('weky');
console.log(weky.flip('Hello World'));
/*output:
plɹoM ollǝH
*/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%