Skip to content
Open
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
18 changes: 9 additions & 9 deletions src/commands/Giveaway/gcreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,30 @@ export default {
.setDescription("Starts a new giveaway in a specified channel.")
.addStringOption((option) =>
option
.setName("duration")
.setName("Zeit")
.setDescription(
"How long the giveaway should last (e.g., 1h, 30m, 5d).",
"Zeit des Giveaways (e.g., 1h, 30m, 5d).",
)
.setRequired(true),
)
.addIntegerOption((option) =>
option
.setName("winners")
.setDescription("The number of winners to pick.")
.setName("gewinner")
.setDescription("die zahlen vön gewinnern")
.setMinValue(GIVEAWAY_MIN_WINNERS)
.setMaxValue(GIVEAWAY_MAX_WINNERS)
.setRequired(true),
)
.addStringOption((option) =>
option
.setName("prize")
.setName("gewinn")
.setDescription("The prize being given away.")
.setRequired(true),
)
.addChannelOption((option) =>
option
.setName("channel")
.setDescription("The channel to send the giveaway to (defaults to current channel).")
.setDescription("Der kanal wo es gesendet wird (default kanal ist der aktuelle).")
.addChannelTypes(ChannelType.GuildText)
.setRequired(false),
)
Expand Down Expand Up @@ -116,7 +116,7 @@ export default {
const row = createGiveawayButtons(false);

const giveawayMessage = await targetChannel.send({
content: "🎉 **NEW GIVEAWAY** 🎉",
content: "🎉 **NEUES GIVEAWAY** 🎉",
embeds: [embed],
components: [row],
});
Expand Down Expand Up @@ -174,11 +174,11 @@ export default {
await InteractionHelper.safeReply(interaction, {
embeds: [
successEmbed(
`Giveaway Started! 🎉`,
`Giveaway hat gestartet 🎉`,
`A new giveaway for **${prizeName}** has been started in ${targetChannel} and will end in **${durationString}**.`,
),
],
flags: MessageFlags.Ephemeral,
});
},
};
};
32 changes: 16 additions & 16 deletions src/commands/Welcome/goodbye.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,38 @@ import { ErrorTypes, replyUserError } from '../../utils/errorHandler.js';

export default {
data: new SlashCommandBuilder()
.setName('goodbye')
.setDescription('Configure the goodbye message system')
.setName('tschüss')
.setDescription('Willkommens modul confih)
.setDefaultMemberPermissions(PermissionFlagsBits.ManageGuild)
.addSubcommand(subcommand =>
subcommand
.setName('setup')
.setDescription('Set up the goodbye message')
.setDescription('Tschüss Module configurieren')
.addChannelOption(option =>
option.setName('channel')
.setDescription('The channel to send goodbye messages to')
.setDescription('der kanal wo die nachricht gesendet wird')
.addChannelTypes(ChannelType.GuildText)
.setRequired(true))
.addStringOption(option =>
option.setName('message')
.setDescription('Goodbye message. Variables: {user}, {username}, {server}, {memberCount}')
.setDescription('Tschüss nachricht. Variables: {user}, {username}, {server}, {memberCount}')
.setRequired(true))
.addStringOption(option =>
option.setName('image')
.setDescription('URL of the image to include in the goodbye message')
option.setName('bild')
.setDescription('macht ein bild im text URL')
.setRequired(false))
.addBooleanOption(option =>
option.setName('ping')
.setDescription('Whether to ping the user in the goodbye message')
.setDescription('Soll dir person gepingt werden ')
.setRequired(false))),

async execute(interaction) {
const deferSuccess = await InteractionHelper.safeDefer(interaction);
if (!deferSuccess) {
logger.warn(`Goodbye interaction defer failed`, {
logger.warn(`Tschüss modul fehlgeschlagen`, {
userId: interaction.user.id,
guildId: interaction.guildId,
commandName: 'goodbye'
commandName: 'Tschüss'
});
return;
}
Expand All @@ -55,7 +55,7 @@ export default {
if (subcommand === 'setup') {
const channel = options.getChannel('channel');
const message = options.getString('message');
const image = options.getString('image');
const image = options.getString('bild');
const ping = options.getBoolean('ping') ?? false;

const existingConfig = await getWelcomeConfig(client, guild.id);
Expand Down Expand Up @@ -103,16 +103,16 @@ export default {
const embed = new EmbedBuilder()
.setColor(getColor('success'))
.setTitle('Goodbye System Configured')
.setDescription(`Goodbye messages will now be sent to ${channel}`)
.setDescription(`tschüss nachrichten werden jetzt gesendet in ${channel}`)
.addFields(
{ name: 'Message Preview', value: truncateForEmbedField(previewMessage) },
{ name: 'Ping User', value: ping ? 'Yes' : 'No' },
{ name: 'Ping User', value: ping ? 'ja' : 'nein' },
{ name: 'Status', value: 'Enabled' }
)
.setFooter({ text: 'Tip: Use /greet dashboard to customize goodbye settings' });
.setFooter({ text: 'Tip: benutze das willkommens dashboard' });

if (image) {
embed.setImage(image);
embed.setImage(bild);
}

await InteractionHelper.safeEditReply(interaction, { embeds: [embed] });
Expand All @@ -122,4 +122,4 @@ export default {
}
}
},
};
};
34 changes: 17 additions & 17 deletions src/config/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const botConfig = {
// - "invisible" = appears offline
presence: {
// Current online state shown on Discord.
status: "online",
status: "dnd",

// Activity lines shown under the bot name.
// `type` number mapping from Discord:
Expand All @@ -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: "HyperCloud.bot", // required by Discord API, not shown in the client
state: "Hypercloud.bot", // this is what people actually see
type: 0, // Custom
},
],
},
Expand Down Expand Up @@ -93,14 +93,14 @@ export const botConfig = {
embeds: {
colors: {
// Main brand colors.
primary: "#336699",
primary: "#0377fc",
secondary: "#2F3136",

// Standard status colors for success/error/warning/info messages.
success: "#57F287",
error: "#ED4245",
warning: "#FEE75C",
info: "#3498DB",
success: "#17fc03",
error: "#fc0303",
warning: "#f4fc03",
info: "#0377fc",

// Neutral utility colors.
light: "#FFFFFF",
Expand All @@ -117,14 +117,14 @@ export const botConfig = {

// Feature-specific colors.
giveaway: {
active: "#57F287",
ended: "#ED4245",
active: "#0377fc",
ended: "#0377fc",
},
ticket: {
open: "#57F287",
claimed: "#FAA61A",
closed: "#ED4245",
pending: "#99AAB5",
open: "#0377fc",
claimed: "#0377fc",
closed: "#0377fc",
pending: "#0377fc",
},
economy: "#F1C40F",
birthday: "#E91E63",
Expand All @@ -141,7 +141,7 @@ export const botConfig = {
},
footer: {
// Default footer text used in bot embeds.
text: "Titan Bot",
text: "HyperCloud",
// Footer icon URL (null = no icon).
icon: null,
},
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;