Fix crash restart when bot received DM
This commit is contained in:
benji7425 2017-10-02 11:49:46 +01:00
parent 7c5ef008d8
commit d348d7e41f
3 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## v3.0.0-b7
- Fix crash restart when bot received a DM
## v3.0.0-b6
### Updatd

View File

@ -20,6 +20,9 @@ client.on("ready", () => {
.then(() => checkFeedsInGuilds());
client.on("message", message => {
if (message.channel.type !== "text" || !message.member)
return;
const guildData = client.guildsData[message.guild.id];
if (guildData)
guildData.feeds.forEach(feedData => {

View File

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