Skip to content

Commit

Permalink
more logo config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pete9xi committed Aug 18, 2024
1 parent 9739b30 commit 64d0791
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/death_listener/deathMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function sendDeathMessage(channelId: TextBasedChannel, playername: string, reaso
.setColor(config.setColor)
.setTitle(config.setTitle)
.setDescription("[In Game] " + playername + ": " + reason)
.setAuthor({ name: "‎", iconURL: "https://i.imgur.com/FA3I1uu.png" });
.setAuthor({ name: "‎", iconURL: config.logoURL });
if (typeof channelId === "object") {
channelId.send({ embeds: [msgEmbed] });
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/player_device_listener/playerDeviceLogging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function addPlayerListener(bot: Client, channelId: TextBasedChannel, Whit
}
if (Debug === true) {
if (config.useEmbed === true) {
const msgEmbed = new EmbedBuilder().setColor([0, 255, 0]).setTitle(config.setTitle).setDescription(description).setAuthor({ name: "‎", iconURL: "https://i.imgur.com/FA3I1uu.png" });
const msgEmbed = new EmbedBuilder().setColor([0, 255, 0]).setTitle(config.setTitle).setDescription(description).setAuthor({ name: "‎", iconURL: config.logoURL });
sendToChannel(channelId, { embeds: [msgEmbed] }, "I could not find the in-game channel in Discord. 2");
} else {
sendToChannel(channelId, description, "I could not find the in-game channel in Discord. 3");
Expand Down
2 changes: 1 addition & 1 deletion src/system_commands_listener/systemCommandsLogging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function handleTextEvent(packet: WhisperPacket | ChatPacket | JsonPacket, system
if (!dontSendMessage) {
const message = `[System Message] ${playerName}: ${successMessage} ${systemMessage}`;
if (config.useEmbed) {
const msgEmbed = new EmbedBuilder().setColor(config.setColor).setTitle(config.setTitle).setDescription(message).setAuthor({ name: "‎", iconURL: "https://i.imgur.com/FA3I1uu.png" });
const msgEmbed = new EmbedBuilder().setColor(config.setColor).setTitle(config.setTitle).setDescription(message).setAuthor({ name: "‎", iconURL: config.logoURL });

if (typeof systemCommandsChannelId === "object") {
systemCommandsChannelId.send({ embeds: [msgEmbed] });
Expand Down

0 comments on commit 64d0791

Please sign in to comment.