Skip to content

Commit f0160f4

Browse files
authored
Merge pull request #9 from AstroGD/update-202104-1
April 2021 Security patches
2 parents b4a8d17 + b59fc88 commit f0160f4

4 files changed

Lines changed: 37 additions & 30 deletions

File tree

changelog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# Version 2.0.5
2+
#### Released on 10.04.2021
3+
4+
## Bugfixes
5+
:bug: Fixed a bug where the bot would crash if an invalid guild id was provided in the config
6+
7+
## Dependency Updates
8+
:arrow_up: Update discord.js to 12.5.3
9+
:arrow_up: Update follow-redirects to 1.13.3
10+
111
# Version 2.0.4
212
#### Released on 03.02.2021
313

main.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,8 @@ async function startup() {
147147
let guild = client.guilds.cache.get(config.server_id);
148148
if (!guild) {
149149
log(`Guild not found. Please edit Config.json. Program will be terminated.`, 1);
150-
client.destroy()
151-
.then(() => {
152-
process.exit();
153-
});
154-
return;
150+
client.destroy();
151+
process.exit();
155152
}
156153

157154
log(`Guild found. Listening to ${guild.name} (${guild.id}) - Loading commands`);

package-lock.json

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ticketsystem",
3-
"version": "2.0.4",
3+
"version": "2.0.5",
44
"description": "Ticketsystem Discord Bot",
55
"main": "main.js",
66
"scripts": {
@@ -10,8 +10,8 @@
1010
"author": "AstroGD | Lukas Weber (https://www.astrogd.eu)",
1111
"license": "AGPL-3.0",
1212
"dependencies": {
13-
"discord.js": "^12.5.1",
14-
"follow-redirects": "^1.13.2",
13+
"discord.js": "^12.5.3",
14+
"follow-redirects": "^1.13.3",
1515
"fs-extra": "^9.1.0"
1616
}
1717
}

0 commit comments

Comments
 (0)