Browse Source

3.2.2

asdf
master
benji7425 3 years ago
parent
commit
cb718dea41
  1. 4
      CHANGELOG.md
  2. 4
      app/models/guild-data.js
  3. 2
      discord-bot-core/Util.js
  4. 2
      package.json

4
CHANGELOG.md

@ -1,4 +1,8 @@
# Changelog
## v3.2.2
### Fixed
- Fixed a couple of edge case errors
## v3.2.1
### Fixed
- Fixed memory leak due to unconfigured discord.js caching

4
app/models/guild-data.js

@ -16,7 +16,7 @@ module.exports = class GuildData extends Core.BaseGuildData {
return Promise.all(
this.feeds
.filter(feed => feedIsActive(feed, guild))
.map(feed => feed.updatePastPostedLinks(guild))
.map(feed => feed.updatePastPostedLinks(guild).catch(err => null))
);
}
@ -24,7 +24,7 @@ module.exports = class GuildData extends Core.BaseGuildData {
return Promise.all(
this.feeds
.filter(feed => feedIsActive(feed, guild))
.map(feed => feed.fetchLatest(guild))
.map(feed => feed.fetchLatest(guild).catch(err => null))
);
}
};

2
discord-bot-core/Util.js

@ -17,7 +17,7 @@ function ask(client, textChannel, member, question) {
const askTimeout = setTimeout(cancelAsk, InternalConfig.askTimeout);
const handler = responseMessage => {
if (responseMessage.channel.id === textChannel.id && responseMessage.member.id === member.id) {
if (responseMessage.channel.id === textChannel.id && responseMessage.member && responseMessage.member.id === member.id) {
clearTimeout(askTimeout);
resolve(responseMessage);
}

2
package.json

@ -1,5 +1,5 @@
{
"version": "3.2.1",
"version": "3.2.2",
"main": "app/index.js",
"scripts": {
"postinstall": "cd ./discord-bot-core && npm install",

Loading…
Cancel
Save