UNPKG

roleplay-commands

Version:

Simple and easy to use commands for GTA or Roblox Roleplay

370 lines (326 loc) 11.9 kB
const discord = require('discord.js') const client = new discord.Client() class RPcommands { async lockCar(message) { let content = { embed: { title: 'Roleplay Action', color: 'RANDOM', description: `${message.author} has locked their car.` } } message.channel.send(content) } async unlockCar(message) { let content = { embed: { title: 'Roleplay Action', color: 'RANDOM', description: `${message.author} has unlocked their car.` } } message.channel.send(content) } async refuel(message) { let content = { embed: { title: 'Roleplay Action', color: 'RANDOM', description: `${message.author} is refueling their car.` } } message.channel.send(content) } async unrackRifle(message) { let content = { embed: { title: 'Roleplay Action', color: 'RANDOM', description: `${message.author} has unracked their rifle.` } } message.channel.send(content) } async rackRifle(message) { let content = { embed: { title: 'Roleplay Action', color: 'RANDOM', description: `${message.author} has racked their rifle.` } } message.channel.send(content) } async windowsUp(message) { let content = { embed: { title: 'Roleplay Action', color: 'RANDOM', description: `${message.author} has rolled up their windows.` } } message.channel.send(content) } async windowsDown(message) { let content = { embed: { title: 'Roleplay Action', color: 'RANDOM', description: `${message.author} has rolled down their windows.` } } message.channel.send(content) } async rackShotgun(message) { let content = { embed: { title: 'Roleplay Action', color: 'RANDOM', description: `${message.author} has racked their shotgun.` } } message.channel.send(content) } async unrackShotgun(message) { let content = { embed: { title: 'Roleplay Action', color: 'RANDOM', description: `${message.author} has unracked their shotugn.` } } message.channel.send(content) } async searchPerson(message) { message.channel.send(`${message.members.mentions.first()} you are being searched by ${message.author} what do they find?`) } async searchVehicle(message) { message.channel.send(`${message.members.mentions.first()} your vehicle is being searched by ${message.author} what do they find?`) } async me(message, prefix) { let args = message.content.slice(prefix.length).trim().split(/ +/g) let action21 = args.slice(1).join(' ') let content = { embed: { title: 'Roleplay Action', coolor: 'RANDOM', description: `${action21}` } } message.channel.send(content) } async OOC(message, prefix) { let args = message.content.slice(prefix.length).trim().split(/ +/g) let OOCmessage = args.slice(1).join(' ') let OOCembed = { embed: { title: 'Out Of Character Action', color: 'RANDOM', description: `${OOCmessage}` } } message.channel.send(OOCembed) } async twotter(message, prefix) { let args = message.content.slice(prefix.length).trim().split(/ +/g) let twottMessage = args.slice(1).join(' ') let twott = { embed: { title: 'New Twott', color: '#1DA1F2', description: `${twottMessage}` } } message.channel.send(twott) } async radarOn(message) { let content = { embed: { title: 'Roleplay Action', color: 'RANDOM', description: `${message.author} has turned on their radar.` } } message.channel.send(content) } async radarSet(message, prefix) { let args = message.content.slice(prefix.length).trim().split(/ +/g) let radarSpeed = ars.slice(1).join(' ') let radarEmbed = { embed: { title: 'Radar Set', color: 'Green', description: `Your radar speed has been set to ${radarSpeed}` } } message.channel.send(radarEmbed) } async radarOff(message) { let content = { embed: { title: 'Roleplay Action', color: 'RANDOM', description: `${message.author} has turned off their radar.` } } message.channel.send(content) } async cuff(message) { message.channel.send(`${message.mentions.members.first()} has been cuffed by ${message.author}`) } async unCuff(message) { message.channel.send(`${message.mentions.members.first()} has been uncuffed by ${message.author}`) } async engineOn(message) { let content = { embed: { title: 'Roleplay Action', color: 'RANDOM', description: `${message.author} has turned their engine on.` } } message.channel.send(content) } async engineOff(message) { let content = { embed: { title: 'Roleplay Action', color: 'RANDOM', description: `${message.author} has turned their engine off.` } } message.channel.send(content) } async seatbeltOn(message) { let content = { embed: { title: 'Roleplay Action', color: 'RANDOM', description: `${message.author} has put their seatbelt on.` } } message.channel.send(content) } async seatbeltOff(message) { let content = { embed: { title: 'Roleplay Action', color: 'RANDOM', description: `${message.author} has took their seatbelt off.` } } message.channel.send(content) } async dashcamOn(message) { let content = { embed: { title: 'Roleplay Action', color: 'RANDOM', description: `${message.author} has turned their dashcam on.` } } message.channel.send(content) } async dashcamOff(message) { let content = { embed: { title: 'Roleplay Action', color: 'RANDOM', description: `${message.author} has turned their dashcam off.` } } message.channel.send(content) } async patrolMap(message, mapLink) { if(!mapLink) throw new TypeError('Please provide a patrol map link') let content = { embed: { title: 'Patrol Map', color: 'RANDOM', description: `[Click For Patrol Map](${mapLink})` } } message.channel.send(content) } async cadMdt(message, cadLink) { if(!cadLink) throw new TypeError('Please provide a CAD/MDT link') let content = { embed: { title: 'CAD/MDT', color: 'RANDOM', description: `[Click For The CAD/MDT](${cadLink})` } } message.channel.send(content) } async penalCode(message, penalCodeLink) { if(!penalCodeLink) throw new TypeError('Please provide a penal code link') let content = { embed: { title: 'Penal Code', color: 'RANDOM', description: `[Click For Penal Code](${penalCodeLink})` } } message.channel.send(content) } async note(message, prefix) { let noteContent = args.slice(1).join(' ') let noteEmbed = { embed: { title: 'Note Taken', color: 'RANDOM', description: `Note Contents:\n${noteContent}` } } } async writeAdvancedTicket(message, prefix) { let vioDate = args.slice(1).join(' ') let timeInput = args.slice(1).join(' ') let dayInput = args.slice(1).join(' ') let nameInput = args.slice(1).join(' ') let weightInput = args.slice(1).join(' ') let addressInput = args.slice(1).join(' ') let dobInput = args.slice(1).join(' ') let raceInput = args.slice(1).join(' ') let hairColorInput = args.slice(1).join(' ') let sexInput = args.slice(1).join(' ') let plateInput = args.slice(1).join(' ') let modelInput = args.slice(1).join(' ') let colorInput = args.slice(1).join(' ') let ROInput = args.slice(1).join(' ') let LOFinput = args.slice(1).join(' ') let violationsInput = args.slice(1).join(' ') let fineInput = args.slice(1).join(' ') let citingOffInput = args.slice(1).join(' ') let recipientInput = args.slice(1).join(' ') let advancEmbed = { embed: { title: 'Traffic Ticket', color: 'RANDOM', description: `| Date Of Violation: ${vioDate} | Time: ${timeInput} | Day Of The Week ${dayInput} |\nName: ${nameInput} |\n$D.O.B: ${dobInput} | Weight: ${weightInput} |\n Race: ${raceInput} | Hair Color: ${hairColorInput} | Sex: ${sexInput} |\n Plate: ${plateInput} |\nModel: ${modelInput} | Color: ${colorInput} |\nRegistered Owner: ${ROInput} |\nLocation Of Offense: ${LOFinput} |\nViolations: ${violationsInput} | Fine Amount: ${fineInput} |\nCiting Officer: ${citingOffInput} |\n Recipient: ${recipientInput} |` } } message.channel.send(advancEmbed) } async writeBasicTicket(message, prefix) { let vioDate = args.slice(1).join(' ') let timeInput = args.slice(1).join(' ') let dayInput = args.slice(1).join(' ') let nameInput = args.slice(1).join(' ') let LOFinput = args.slice(1).join(' ') let violationsInput = args.slice(1).join(' ') let fineInput = args.slice(1).join(' ') let citingOffInput = args.slice(1).join(' ') let recipientInput = args.slice(1).join(' ') let basicEmbed = { embed: { title: 'Traffic Ticket', color: 'RANDOM', description: `| Date Of Violation: ${vioDate} | Time: ${timeInput} | Day Of The Week ${dayInput} |\nName: ${nameInput} |\nLocation Of Offense: ${LOFinput} |\nViolations: ${violationsInput} | Fine Amount: ${fineInput} |\nCiting Officer: ${citingOffInput} |\n Recipient: ${recipientInput} |` } } message.channel.send(basicEmbed) } } module.exports = RPcommands