Skip to content

Commit

Permalink
chore(release): 1.31.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Beijner committed Jan 1, 2025
1 parent a95e5f0 commit 1018d04
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.31.1](https://github.com/Tom-Beijner/Mordhau-RCON/compare/v1.31.0...v1.31.1) (2025-01-01)


### Bug Fixes

* potential fix for attachment not sending for the history report ([a95e5f0](https://github.com/Tom-Beijner/Mordhau-RCON/commit/a95e5f04dee42d24e221c16b995ed7cb6c37ba6a))

## [1.31.0](https://github.com/Tom-Beijner/Mordhau-RCON/compare/v1.30.3...v1.31.0) (2024-12-31)


Expand Down
16 changes: 8 additions & 8 deletions dist/commands/discord/admin/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,15 @@ class History extends SlashCommand_1.default {
if (pastOffenses.length < 1025)
pastOffenses = `\`\`\`${pastOffenses}\`\`\``;
}
let attachment;
if (pastOffenses.length > 1024) {
attachment = Buffer.from(pastOffenses);
const attachment = Buffer.from(pastOffenses);
await ctx.send({
content: `${payload.playername} (${playerHistory.ids.playFabID}) history file`,
file: {
file: attachment,
name: `${playerHistory.ids.playFabID}-history.txt`
}
});
pastOffenses = "See attached text file";
}
let message = "";
Expand Down Expand Up @@ -210,12 +216,6 @@ class History extends SlashCommand_1.default {
},
},
],
...(pastOffenses.length > 1024 && {
file: {
file: attachment,
name: "Output.txt"
}
})
});
}
catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mordhau-rcon",
"version": "1.31.0",
"version": "1.31.1",
"description": "Discord bot that utilizes RCON for Mordhau server and logs punishments with extra features.",
"repository": {
"type": "git",
Expand Down

0 comments on commit 1018d04

Please sign in to comment.