the first commit
This commit is contained in:
commit
d5920470cc
18 changed files with 1887 additions and 0 deletions
24
commands/roleplaying/die.js
Normal file
24
commands/roleplaying/die.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
const { SlashCommandBuilder, ChannelType } = require(`discord.js`);
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName(`die`)
|
||||
.setDescription(`You die in roleplay`)
|
||||
.addStringOption(option =>
|
||||
option.setName('reason')
|
||||
.setDescription('Why?')
|
||||
.setMaxLength(256)
|
||||
.setRequired(true)),
|
||||
|
||||
async execute(interaction) {
|
||||
const why = interaction.options.getString('reason')
|
||||
const member = interaction.guild.members.cache.get(interaction.user.id);
|
||||
const nickname = member.nickname;
|
||||
const responseEmbed = new EmbedBuilder()
|
||||
.setTitle(`${nickname} died...`)
|
||||
.setDescription("..." + why)
|
||||
interaction.reply({ embeds: [responseEmbed] });
|
||||
},
|
||||
}
|
||||
30
commands/roleplaying/do.js
Normal file
30
commands/roleplaying/do.js
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
const { SlashCommandBuilder, ChannelType } = require(`discord.js`)
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName(`do`)
|
||||
.setDescription(`Indicates an action in roleplay`)
|
||||
.addStringOption(option =>
|
||||
option.setName('what')
|
||||
.setDescription('What you gonna do?')
|
||||
.setMaxLength(256)
|
||||
.setRequired(true))
|
||||
.addStringOption(option =>
|
||||
option.setName('extra')
|
||||
.setDescription('Describe the action')
|
||||
.setMaxLength(4000)),
|
||||
|
||||
async execute(interaction) {
|
||||
const action = interaction.options.getString('what')
|
||||
const desc = interaction.options.getString(`extra`)
|
||||
const member = interaction.guild.members.cache.get(interaction.user.id);
|
||||
const nickname = member.nickname;
|
||||
const responseEmbed = new EmbedBuilder()
|
||||
.setTitle(`${nickname} ` + action + "...")
|
||||
.setFooter({ text: `No one was killed or died` })
|
||||
if (desc != null) {responseEmbed.setDescription("..." + desc)};
|
||||
interaction.reply({ embeds: [responseEmbed] });
|
||||
},
|
||||
}
|
||||
27
commands/roleplaying/go.js
Normal file
27
commands/roleplaying/go.js
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
const { SlashCommandBuilder, ChannelType } = require(`discord.js`)
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName(`go`)
|
||||
.setDescription(`Go to a channel in roleplay`)
|
||||
.addChannelOption(option =>
|
||||
option.setName('channel')
|
||||
.setDescription('Where you wanna go?')
|
||||
.setRequired(true)),
|
||||
|
||||
async execute(interaction) {
|
||||
const chan = interaction.options.getChannel(`channel`)
|
||||
const member = interaction.guild.members.cache.get(interaction.user.id);
|
||||
const nickname = member.nickname;
|
||||
const exitEmbed = new EmbedBuilder()
|
||||
.setAuthor({ name: nickname })
|
||||
.setDescription(`Went to <#${chan.id}>`)
|
||||
const cameEmbed = new EmbedBuilder()
|
||||
.setAuthor({ name: nickname })
|
||||
.setDescription(`Came from <#${chan.id}>`)
|
||||
interaction.reply({ embeds: [exitEmbed] });
|
||||
chan.send({ embeds: [cameEmbed] });
|
||||
},
|
||||
}
|
||||
28
commands/roleplaying/kill.js
Normal file
28
commands/roleplaying/kill.js
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
const { SlashCommandBuilder, ChannelType } = require(`discord.js`)
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName(`kill`)
|
||||
.setDescription(`Kill someone in roleplay`)
|
||||
.addUserOption(option =>
|
||||
option.setName('who')
|
||||
.setRequired(true))
|
||||
.addStringOption(option =>
|
||||
option.setName('reason')
|
||||
.setDescription('How?')
|
||||
.setMaxLength(4000)
|
||||
.setRequired(true)),
|
||||
|
||||
async execute(interaction) {
|
||||
const member = interaction.guild.members.cache.get(interaction.user.id);
|
||||
const nickname = member.nickname;
|
||||
const dead = interaction.options.getUser('who')
|
||||
const desc = interaction.options.getString(`reason`)
|
||||
const responseEmbed = new EmbedBuilder()
|
||||
.setTitle(`${nickname} killed someone:`)
|
||||
.setDescription(`<@${dead.id}> died ${desc}`)
|
||||
interaction.reply({ embeds: [responseEmbed] });
|
||||
},
|
||||
}
|
||||
22
commands/roleplaying/thought.js
Normal file
22
commands/roleplaying/thought.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
const { SlashCommandBuilder, ChannelType } = require(`discord.js`)
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName(`t`)
|
||||
.setDescription(`Indicates a thought in roleplay`)
|
||||
.addStringOption(option =>
|
||||
option.setName('what')
|
||||
.setRequired(true)),
|
||||
|
||||
async execute(interaction) {
|
||||
const desc = interaction.options.getString(`what`)
|
||||
const member = interaction.guild.members.cache.get(interaction.user.id);
|
||||
const nickname = member.nickname;
|
||||
const responseEmbed = new EmbedBuilder()
|
||||
.setTitle(`${nickname} is thinking:`)
|
||||
.setDescription(desc)
|
||||
interaction.reply({ embeds: [responseEmbed] });
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue