1.6.1 ā€¢ Published 3 years ago

monochromish v1.6.1

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

šŸ”˜ monochromish

A npm package which can be used with discord-buttons to make interactive embeds, calculator command and much more! psst..it also has chatbot feature so you can talk with your bot


šŸ“œ Index:

- šŸ“„ Installation

- āš™ļø Features

- šŸ”§ How to setup

- ā“ Credits


šŸ“„ Installation

You first need to install node.js After you have installed node.js, run this command in the terminal / console to install this package

npm install monochromish

āš™ļø Features

Interactive buttons on embeds - Add cool buttons to you embed which can be used to cycle through | discord-buttons required

ChatBot - Talk to the bot | Uses api.affiliateplus.xyz

Calculator - Make a calculator command with cool buttons | discord-buttons required, mathjs required

QuickType - Make a QuickType / TypingTest command that is fun and accurate at the same time | discord-buttons required, random-words required

DiscordTogether - Play fun interactive games with your friends on Discord or watch Youtube

Snake - Play an awesome game of Snake / Rattler Race in discord! | discord-buttons required


šŸ”§ How to setup


Interactive buttons on embeds

You also need to install discord-buttons to use Interactive buttons on embeds

//==========Important Modules==========//
const Discord = require('discord.js');
const client = new Discord.Client();
require('discord-buttons')(client);
client.interaction = {};
const ButtonPages = require('monochromish');
//==========Ready Event==========//
client.on('ready', () => {
  console.log(`Bot has logged in via ${client.user.tag}`);
});
//==========npm i monochromish==========//
client.on('clickButton', (button) => {
  ButtonPages.buttonInteractions(button, client.interaction);
});
client.on('message', msg => {
  if (msg.content === '?help') {
    const embed1 = new MessageEmbed()
        .setTitle('1st')
        .setColor('BLACK');
    const embed2 = new MessageEmbed()
        .setTitle('2nd')
        .setColor('BLUE');
    const embed3 = new MessageEmbed()
        .setTitle('3rd')
        .setColor('BLURPLE');
    const embedPages = [embed1, embed2, embed3];
    ButtonPages.createPages(client.interaction, msg, embedPages, 60 * 1000, "red", "šŸ‘‰", "šŸ‘ˆ", "āŒ");
  }
});
//==========Login==========//
client.login("YOUR BOT TOKEN")

šŸ‘‰ Interactive buttons with emoji support


ChatBot

Talk to the bot | Uses api.affiliateplus.xyz

//==========Important Modules==========//
const Discord = require('discord.js');
const client = new Discord.Client();
const Chat = require("monochromish");
const chat = new Chat({ name: "NAME OF YOUR CHATBOT" });
//==========Ready Event==========//
client.on('ready', () => {
  console.log(`Bot has logged in via ${client.user.tag}`);
});
//==========npm i monochromish==========//
client.on("message", async message => {
  if (message.mentions.has(client.user) && !message.author.bot) { 
    let reply = await chat.chat(message.content)
    message.reply(reply)
  }
});
//==========Login==========//
client.login("YOUR BOT TOKEN")

šŸ‘‰ API is up almost everytime


Calculator

Make a calculator command with cool buttons

//==========Important Modules==========//
const Discord = require('discord.js');
const client = new Discord.Client();
require('discord-buttons')(client);
const { Calculator } = require('monochromish');
//==========Ready Event==========//
client.on('ready', () => {
  console.log(`Bot has logged in via ${client.user.tag}`);
});
//==========npm i monochromish==========//
client.on('message', async (message) => {
	if(message.content === '?calculator') {
		await Calculator({
			message: message,
			embed: {
				title: 'Calculator',
				color: '#2e3137',
				timestamp: true,
			},
			disabledQuery: 'Calculator is disabled.',
			invalidQuery: 'Equation provided is invalid',
			othersMessage: 'Only <@{{author}}> can use the buttons',
		});
	}
});
//==========Login==========//
client.login("YOUR BOT TOKEN")

šŸ‘‰ Powerful and fast


QuickType

Make a QuickType / TypingTest command that is fun and accurate at the same time

//==========Important Modules==========//
const Discord = require('discord.js');
const client = new Discord.Client();
require('discord-buttons')(client);
const { QuickType } = require("monochromish");
var randomWords = require('random-words');
//==========Ready Event==========//
client.on('ready', () => {
  console.log(`Bot has logged in via ${client.user.tag}`);
});
//==========npm i monochromish==========//
client.on('message', async (message) => {
	if(message.content === '?quicktype') {
		await QuickType({
			message: message,
			embed: {
				title: 'QuickType',
				description: 'You have **{{time}}** to type the sentence',
				color: '#2e3137',
				timestamp: true
			},
			sentence: `${randomWords({ exactly: 5, join: ' ' })}`,
			winMessage: 'GG! You have a wpm of **{{wpm}}**. You took **{{time}}** to type that.',
			loseMessage: 'Looks like you typed something wrong or took too long ;-;. Try again',
			cancelMessage: 'You have ended this game!',
			time: 60000,
			buttonText: 'Stop šŸ›‘',
			othersMessage: 'Only <@{{author}}> can use the buttons!'
		});
	}
});
//----------Login----------//
client.login("YOUR BOT TOKEN")

šŸ‘‰ Fun and Accurate


DiscordTogether

Play fun interactive games with your friends on Discord or watch Youtube

//==========Important Modules==========//
const Discord = require('discord.js');
const client = new Discord.Client();
const { DiscordTogether } = require("monochromish");
client.discordTogether = new DiscordTogether(client);
//==========Ready Event==========//
client.on('ready', () => {
  console.log(`Bot has logged in via ${client.user.tag}`);
});
//==========npm i monochromish==========//
//You can replace 'poker' with 'youtube', 'fishing', 'chess', 'chessdev', 'betrayal' or 'zombsroyale'.
client.on('message', async (message) => {
	if(message.content === '?poker') {
		if(!message.member.voice.channel) {
			message.reply("You must be in a VC to use this command.")
		} else {
            client.discordTogether.createTogetherCode(message.member.voice.channelID, 'poker').then(async invite => {
                return message.reply(`<${invite.code}>`);//You can replace 'poker' with 'youtube', 'fishing', 'chess', 'chessdev', 'betrayal' or 'zombsroyale'.
            });
        };
    };
});
//----------Login----------//
client.login("YOUR BOT TOKEN")

šŸ‘‰ Fun and Updated


Snake

Snake - Play an awesome game of Snake / Rattler Race in discord!

//==========Important Modules==========//
const Discord = require('discord.js');
const client = new Discord.Client();
require('discord-buttons')(client);
const { Snake } = require('monochromish');
//==========Ready Event==========//
client.on('ready', () => {
  console.log(`Bot has logged in via ${client.user.tag}`);
});
//==========npm i monochromish==========//
client.on('message', async (message) => {
	if(message.content === '?snake') {
    await Snake({
      message: message,
      embed: {
        title: 'Snake',
        description: 'GG! You scored **{{score}}** points!',
        color: '#2e3137',
        timestamp: true,
      },
      emojis: {
        empty: 'ā¬›',//You can customize this
        snakeBody: 'šŸŸ©',
        food: 'šŸŽ',
        up: 'šŸ”¼',
        right: 'ā—€ļø',
        down: 'šŸ”½',
        left: 'ā–¶ļø',
      },
      othersMessage: 'Only <@{{author}}> can use the buttons!',
      buttonText: 'Quit',
    });
	}
});
//----------Login----------//
client.login("YOUR BOT TOKEN")

šŸ‘‰ Very fun and fully customizable


ā“ Credits

This package was fully made by Monochromish ( 500315184510795819 ) with ā¤ļø

1.6.1

3 years ago

1.6.0

3 years ago

1.5.9

3 years ago

1.5.8

3 years ago

1.5.7

3 years ago

1.5.6

3 years ago

1.5.5

3 years ago

1.5.4

3 years ago

1.5.3

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.9

3 years ago

1.4.8

3 years ago

1.4.6

3 years ago

1.4.5

3 years ago

1.4.4

3 years ago

1.4.7

3 years ago

1.2.0

3 years ago

1.3.7

3 years ago

1.2.8

3 years ago

1.3.6

3 years ago

1.2.7

3 years ago

1.3.5

3 years ago

1.2.6

3 years ago

1.4.3

3 years ago

1.3.4

3 years ago

1.2.5

3 years ago

1.4.2

3 years ago

1.3.3

3 years ago

1.2.4

3 years ago

1.4.1

3 years ago

1.2.3

3 years ago

1.4.0

3 years ago

1.3.1

3 years ago

1.2.2

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.3.9

3 years ago

1.3.8

3 years ago

1.2.9

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.0.9

3 years ago

1.1.7

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