Browse Source

Finish adding bot logs feature

master
Abheek Dhawan 4 years ago
parent
commit
56f2214f56
  1. 3
      index.js

3
index.js

@ -99,8 +99,9 @@ async function startLogs(message) {
}] }]
}).then(channel => { }).then(channel => {
// Add the ID of the "#bot-logs" channel to the database // Add the ID of the "#bot-logs" channel to the database
message.reply(`channel ${channel} created!`)
collection.updateOne({ guild_id: message.guild.id }, { $set: { "bot_logs_id": `${channel.id}` } }); collection.updateOne({ guild_id: message.guild.id }, { $set: { "bot_logs_id": `${channel.id}` } });
}); }).catch(message.reply(`unable to create channel :(`));
} }
} }
}); });

Loading…
Cancel
Save