mirror of
https://github.com/citra-emu/discord-bot.git
synced 2024-12-23 00:35:35 +00:00
bugfixes: grantDeveloper fix and exit on error
This commit is contained in:
parent
0887c3b8cb
commit
59821a21d3
|
@ -11,7 +11,7 @@ export function command (message: discord.Message) {
|
||||||
member.roles.remove(role);
|
member.roles.remove(role);
|
||||||
message.channel.send(`${user.toString()}'s speech has been revoked in the #development channel.`);
|
message.channel.send(`${user.toString()}'s speech has been revoked in the #development channel.`);
|
||||||
} else {
|
} else {
|
||||||
member.roles.remove(role);
|
member.roles.add(role);
|
||||||
message.channel.send(`${user.toString()} has been granted speech in the #development channel.`);
|
message.channel.send(`${user.toString()} has been granted speech in the #development channel.`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -13,7 +13,7 @@ const logger = winston.createLogger({
|
||||||
handleExceptions: true
|
handleExceptions: true
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
exitOnError: false,
|
exitOnError: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Setup logging for LogDNA cloud logging.
|
// Setup logging for LogDNA cloud logging.
|
||||||
|
|
Loading…
Reference in a new issue