Skip to content
Closed

..mk #196

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/commands/session
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { SlashCommandBuilder, EmbedBuilder } from 'discord.js';

export default {
data: new SlashCommandBuilder()
.setName('session')
.setDescription('Start a roleplay session'),

async execute(interaction) {
const embed = new EmbedBuilder()
.setTitle('🦅 | Session Started')
.setDescription(
'A roleplay session has officially started!\n\n' +
'🎮 **Game Code:** WSSRPe\n' +
'📢 Join the session and participate in today’s roleplay!'
)
.setTimestamp();

await interaction.reply({ embeds: [embed] });
},
};
8 changes: 4 additions & 4 deletions src/config/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export const botConfig = {
// 5 = Competing
activities: [
{
name: "Custom Status", // required by Discord API, not shown in the client
state: "stalking", // this is what people actually see
type: 4, // Custom
name: "wsp", // required by Discord API, not shown in the client
state: "WSRP", // this is what people actually see
type: 3, // Custom
},
],
},
Expand Down Expand Up @@ -648,4 +648,4 @@ export function getRandomColor() {
return colors[Math.floor(Math.random() * colors.length)];
}

export default botConfig;
export default botConfig;
20 changes: 20 additions & 0 deletions src/handlers/loaders/session.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('session')
.setDescription('Start a roleplay session'),

async execute(interaction) {
const embed = new EmbedBuilder()
.setTitle('🦅 | Session Started')
.setDescription(
'A roleplay session has officially started!\n\n' +
'🎮 **Game Code:** WSSRPe\n' +
'📢 Join the session and participate in today’s roleplay!'
)
.setTimestamp();

await interaction.reply({ embeds: [embed] });
},
};