Browse Source

Update bot.js

master
JD 3 months ago committed by GitHub
parent
commit
166e2c7b0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      bot.js

7
bot.js

@ -56,16 +56,15 @@ app.post('/endpoint', (req, res) => { @@ -56,16 +56,15 @@ app.post('/endpoint', (req, res) => {
// Make sure the bot is in the correct channel and show that the bot has launched successfully in console
client.on('ready', () => {
musicChannel = client.channels.find(channel => channel.id === inBotConfigs[musicChannelId]);
musicChannel = client.channels.find(channel => channel.id === inBotConfigs.musicChannelId);
if (!musicChannel) console.error('Could not find music channel!');
console.log('I am ready!');
console.log(inBotConfigs[herokuApp], inBotConfigs[pingInterval]);
});
setInterval(function() {
http.get(inBotConfigs[herokuApp]);
}, inBotConfigs[pingInterval]);
http.get(inBotConfigs.herokuApp);
}, inBotConfigs.pingInterval);
// Do not change
client.login(process.env.BOT_TOKEN);

Loading…
Cancel
Save