diff --git a/bot/package.json b/bot/package.json index a1de76a..8a1a322 100644 --- a/bot/package.json +++ b/bot/package.json @@ -23,7 +23,7 @@ "log75": "^2.2.0", "monk": "^7.3.4", "prom-client": "^14.0.1", - "revolt-api": "0.5.19", + "revolt-api": "0.6.3", "revolt.js": "^7.0.0", "ulid": "^2.3.0", "xlsx": "^0.17.3" diff --git a/bot/src/bot/modules/antispam.ts b/bot/src/bot/modules/antispam.ts index c1e7822..400a244 100644 --- a/bot/src/bot/modules/antispam.ts +++ b/bot/src/bot/modules/antispam.ts @@ -263,7 +263,7 @@ const notifyPublicServers = async () => { discoverAutospamNotify: { $in: [ undefined, false ] }, }); - res.forEach(async (serverConfig) => { + for (const serverConfig of res) { try { logger.info(`Sending notification to owner of server ${serverConfig.id}`); @@ -293,7 +293,7 @@ Thanks for being part of Revolt!`); } catch(e) { console.error(e); } - }); + } } awaitClient().then(() => notifyPublicServers()); diff --git a/bot/yarn.lock b/bot/yarn.lock index 2d53ffd..4614992 100644 --- a/bot/yarn.lock +++ b/bot/yarn.lock @@ -806,14 +806,14 @@ __metadata: languageName: node linkType: hard -"revolt-api@npm:0.5.19, revolt-api@npm:^0.5.19": - version: 0.5.19 - resolution: "revolt-api@npm:0.5.19" +"revolt-api@npm:0.6.3": + version: 0.6.3 + resolution: "revolt-api@npm:0.6.3" dependencies: "@insertish/oapi": 0.1.18 axios: ^0.26.1 lodash.defaultsdeep: ^4.6.1 - checksum: 063a06fe73cb9650779ed367e9d850e690e1c8dda644050859f6b00b0de01f8c4486521a407ce49e4b6ed699b6e69d17151c4ff4c55dbd2fff034fa30f1462ea + checksum: b568df2a05e2a4a9a5eb2ccb88a032d1f5e2e390471852e6f2ba366c6c2fb1c78f38af16f1f57768c4743f07b9d165eda3658c664c025d27f32ef00ecf33942b languageName: node linkType: hard @@ -831,7 +831,7 @@ __metadata: log75: ^2.2.0 monk: ^7.3.4 prom-client: ^14.0.1 - revolt-api: 0.5.19 + revolt-api: 0.6.3 revolt.js: ^7.0.0 typescript: ^4.4.3 ulid: ^2.3.0 @@ -849,7 +849,7 @@ __metadata: eventemitter3: ^5.0.0 isomorphic-ws: ^5.0.0 long: ^5.2.1 - revolt-api: ^0.5.19 + revolt-api: 0.6.3 solid-js: ^1.7.3 typedoc: ^0.24.1 ulid: ^2.3.0 diff --git a/bridge/package.json b/bridge/package.json index 9324f39..a9af490 100644 --- a/bridge/package.json +++ b/bridge/package.json @@ -24,7 +24,7 @@ "log75": "^2.2.0", "monk": "^7.3.4", "prom-client": "^14.0.1", - "revolt-api": "0.5.19", + "revolt-api": "0.6.3", "revolt.js": "^7.0.0", "smart-replace": "^1.0.2", "ulid": "^2.3.0" diff --git a/bridge/yarn.lock b/bridge/yarn.lock index e2aaae0..ac115d6 100644 --- a/bridge/yarn.lock +++ b/bridge/yarn.lock @@ -270,7 +270,7 @@ __metadata: log75: ^2.2.0 monk: ^7.3.4 prom-client: ^14.0.1 - revolt-api: 0.5.19 + revolt-api: 0.6.3 revolt.js: ^7.0.0 smart-replace: ^1.0.2 typescript: ^4.7.4 @@ -782,14 +782,14 @@ __metadata: languageName: node linkType: hard -"revolt-api@npm:0.5.19, revolt-api@npm:^0.5.19": - version: 0.5.19 - resolution: "revolt-api@npm:0.5.19" +"revolt-api@npm:0.6.3": + version: 0.6.3 + resolution: "revolt-api@npm:0.6.3" dependencies: "@insertish/oapi": 0.1.18 axios: ^0.26.1 lodash.defaultsdeep: ^4.6.1 - checksum: 063a06fe73cb9650779ed367e9d850e690e1c8dda644050859f6b00b0de01f8c4486521a407ce49e4b6ed699b6e69d17151c4ff4c55dbd2fff034fa30f1462ea + checksum: b568df2a05e2a4a9a5eb2ccb88a032d1f5e2e390471852e6f2ba366c6c2fb1c78f38af16f1f57768c4743f07b9d165eda3658c664c025d27f32ef00ecf33942b languageName: node linkType: hard @@ -803,7 +803,7 @@ __metadata: eventemitter3: ^5.0.0 isomorphic-ws: ^5.0.0 long: ^5.2.1 - revolt-api: ^0.5.19 + revolt-api: 0.6.3 solid-js: ^1.7.3 typedoc: ^0.24.1 ulid: ^2.3.0 diff --git a/lib/.yarn/install-state.gz b/lib/.yarn/install-state.gz index c64fbd5..2a4f001 100644 Binary files a/lib/.yarn/install-state.gz and b/lib/.yarn/install-state.gz differ diff --git a/revolt.js b/revolt.js index 86995a4..24d83ad 160000 --- a/revolt.js +++ b/revolt.js @@ -1 +1 @@ -Subproject commit 86995a45a3433ef30bc7ece94b18cfbacd80bd67 +Subproject commit 24d83ad41267313a5e4d256087536a19773b5234