1.6.3 • Published 4 years ago
rayzdev v1.6.3
rayzdev
Simple functions for your Discord Bot. Git Repository: rayzdev-npm
Table Of Contents
Installation
- Install Node.JS. Then:
$ npm install rayzdev
RockPaperScissors
const opponent = message.mentions.users.first();
if(!opponent) return message.channel.send(`Please mention who you want to fight`);
const { RPS } = require('rayzdev')
const game = new RPS({
message: message,
opponent: opponent, // NOT CHANGEABLE
challenger: message.author, // NOT CHANGEABLE
acceptMessage: "Click to fight with <@" + message.author + '>', // message sent to see if opponent accepts
})
game.start() // start the game
RockPaperScissors requires discord-buttons
You have to install discord-buttons@3.2.1
and put require('discord-buttons')(client)
in your main file to make the buttons show.
cmdHelp
const { cmdHelp } = require("rayzdev"); // Importing cmdHelp
const { MessageEmbed } = require("discord.js"); // Importing MessageEmbed
module.exports = {
name: "help", // command name
category: "Info", // command category
description: "Shows all the commands and how to use them.", // command description
aliases: [" "], // command aliases
usage: "help [command]", // command usage
run: async (client, message, args) => {
if (args[0]) {
return cmdHelp(client, message, args[0], "$"); // return the function 'cmdHelp' with the correct parameters, "$" is the prefix.
} else {
return message.channel.send("", {
embed: new MessageEmbed().setDescription(
`Your normal help command here`,
),
});
}
},
};
Support
If you need help you can DM me on Discord: rayz#4986
1.6.3
4 years ago
1.6.2
4 years ago
1.6.1
4 years ago
1.6.0
4 years ago
1.5.25
4 years ago
1.5.26
4 years ago
1.5.5
4 years ago
1.5.4
4 years ago
1.5.3
4 years ago
1.5.2
4 years ago
1.5.1
4 years ago
1.5.0
4 years ago
1.5.9
4 years ago
1.5.8
4 years ago
1.5.7
4 years ago
1.5.6
4 years ago
1.4.1
4 years ago
1.4.0
4 years ago
1.3.8
4 years ago
1.3.7
4 years ago
1.3.6
4 years ago
1.3.5
4 years ago
1.3.4
4 years ago
1.3.3
4 years ago
1.2.2
4 years ago
1.2.1
4 years ago
1.2.0
4 years ago
1.1.0
4 years ago
1.0.0
4 years ago