mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-12-22 18:45:32 +00:00
Tweaked logging levels. Removed informational message when triggering triggers. Removed Github info message displaying the URL.
This commit is contained in:
parent
5514b5996d
commit
d540ce2d12
4
data.js
4
data.js
|
@ -8,7 +8,7 @@ function readWarnings() {
|
|||
if (err && err.code === 'ENOENT') { return; }
|
||||
if (err) { logger.error(err); }
|
||||
app.warnings = JSON.parse(data);
|
||||
logger.info('Loaded warnings file.');
|
||||
logger.debug('Loaded warnings file.');
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,7 @@ function readBans() {
|
|||
if (err && err.code === 'ENOENT') { return; }
|
||||
if (err) { logger.error(err); }
|
||||
app.bans = JSON.parse(data);
|
||||
logger.info('Loaded bans file.');
|
||||
logger.debug('Loaded bans file.');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ client.on('message', message => {
|
|||
// Check access permissions.
|
||||
if (cachedModule.roles != undefined && findArray(message.member.roles.map(function(x) { return x.name; }), cachedModule.roles) == false) {
|
||||
app.logChannel.sendMessage(`${message.author} attempted to use admin command: ${message.content}`);
|
||||
logger.info(`${message.author.username} ${message.author} attempted to use admin command: ${message.content}`)
|
||||
logger.info(`${message.author.username} ${message.author} attempted to use admin command: ${message.content}`);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ client.on('message', message => {
|
|||
cachedTriggers.forEach(function(trigger) {
|
||||
if (trigger.roles == undefined || findArray(message.member.roles.map(function(x) { return x.name; }), trigger.roles)) {
|
||||
if (trigger.trigger(message) == true) {
|
||||
logger.info(`${message.author.username} ${message.author} [Channel: ${message.channel}] triggered: ${message.content}`);
|
||||
logger.debug(`${message.author.username} ${message.author} [Channel: ${message.channel}] triggered: ${message.content}`);
|
||||
try {
|
||||
trigger.execute(message);
|
||||
} catch (err) { logger.error(err); }
|
||||
|
|
|
@ -22,8 +22,6 @@ exports.execute = function(message) {
|
|||
}
|
||||
|
||||
let url = `https://github.com/citra-emu/citra/pull/${match[1]}`;
|
||||
logger.info(url);
|
||||
|
||||
request(url, function (error, response, body) {
|
||||
if (!error && response.statusCode == 200) {
|
||||
message.channel.sendMessage(`Github Pull Request: ${url}`);
|
||||
|
|
Loading…
Reference in a new issue