monochromish v1.6.1
š 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 ā¤ļø
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago