forked from embee/woomy
commit
3b8503c024
1 changed files with 3 additions and 5 deletions
|
@ -18,7 +18,7 @@ module.exports = client => {
|
||||||
|
|
||||||
if(client.config.consoleLogs.length > 0) {
|
if(client.config.consoleLogs.length > 0) {
|
||||||
try {
|
try {
|
||||||
channel1 = client.guilds.cache.get(client.config.consoleLogs)
|
channel1 = guild.channels.cache.get(client.config.consoleLogs)
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
client.logger.error("Could not find consoleLogs channel (is the ID valid?):\n" + err);
|
client.logger.error("Could not find consoleLogs channel (is the ID valid?):\n" + err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
@ -35,15 +35,13 @@ module.exports = client => {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(client.devmode == true) {
|
if(client.devmode == true) {
|
||||||
client.logger.warn("Running in development mode.")
|
client.logger.warn("Running in development mode.")
|
||||||
prefix = client.config.defaultSettings.devprefix;
|
prefix = client.config.defaultSettings.devprefix;
|
||||||
} else {
|
} else {
|
||||||
prefix = client.config.defaultSettings.prefix;
|
prefix = client.config.defaultSettings.prefix;
|
||||||
if(channel1) {
|
if(channel) {
|
||||||
channel1.send(`Bot started at \`${timestamp}\``);
|
channel.send(`Bot started at \`${timestamp}\``);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue