1.2.2 • Published 3 years ago

poldy v1.2.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

poldy

any issues?

Join the support server

Content:

Installation:

npm i poldy

or

npm install poldy

SnakeGame

const { snakegame } = require("poldy");

const { Client } = require("discord.js");
const client = new Client();

client.on("message", (message) => {
  if (message.content.startsWith("!snake")) {
   new snakegame({
    message: message,
    embed: {
    title: 'Snake', //embed title
    color: "#gt4668", //embed color
    gameOverTitle: "Game Over", //game over embed title
    },
    emojis: {
      empty: '⬛', //zone emoji
      snakeBody: '🟩', //snake
      food: '🍎', //food emoji
      //control
      up: '⬆️', 
      right: '⬅️',
      down: '⬇️',
      left: '➡️',
      },
    }).start()
  }
});

client.login("your token");

This function requires discord-buttons

Emojify

const { emojify } = require("poldy");

emojify("Hi");

flip

const { flip } = require("poldy");
flip("Hi"); // output = Hᴉ

WouldYouRather

const { WouldYouRather } = require("poldy");

const { Client } = require("discord.js");
const client = new Client();

client.on("message", async (message) => {
  if (message.content.startsWith("!snake")) {
    await WouldYouRather(message);
  }
});

client.login("your token");

This function requires discord-buttons

Sudo

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

RockPaperScissors

const opponent = message.mentions.users.first();
if(!opponent) return message.channel.send(`please mention the user that you want to fight with`);
const { rps } = require('poldy')
const game = new rps({
    message: message,
    opponent: opponent, // DO NOT CHANGE THIS
    challenger: message.author, // DO NOT CHANGE THIS
    acceptmessage: "click to fight with <@" + message.author + '> at RockPaperScissors', // message that the bot will send to see if opponent accepts
})
game.start() // start the game

This function requires discord-buttons

Biggify

const { biggify } = require('poldy')

const { Client } = require("discord.js");
const client = new Client();

client.on("message", async (message) => {
  if (message.content.startsWith("!biggify")) {
    const msg = args.slice(1).join(" ");
    const big = biggify(`${msg}`)
    message.channel.send(`\`\`\`${big}\`\`\``) // do not remove the \`\`\` \`\`\`
  }
});

client.login("your token");

output:

  _     _ 
 | |__ (_)
 | '_ \| |
 | | | | |
 |_| |_|_|

This function requires figlet

eightball command

const { eightball } = require('poldy')

const { Client } = require("discord.js");
const client = new Client();

client.on("message", async (message) => {
  if (message.content.startsWith("!8ball")) {
    const msg = args.join()
     eightball(message, msg)// do not remove the message
  }
});

client.login("your token");

// this will make the 8ball command like Dankmemer

ShuffleGuess

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

const { ShuffleGuess } = require('poldy');
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 
              messageReshuffleButton: 'reshuffle', // text of the reshuffle button 
              colorCancelButton: 'red', // color of the cancel button 
              messageCancelButton: 'cancel', // text of the cancel button
              client: client // do not change this
});
game.start();

This function requires node-fetch and discord-buttons

FastType

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

This function requires discord-buttons

Convert

const { Format } = require('poldy');

const test = Format(3000)
console.log(test) // output = 3k
1.2.0

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.1

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago