Commit afaf28a3 authored by Luc Everse's avatar Luc Everse
Browse files

Merge branch 'development' into 'master'

Development

See merge request f00f/geike-arnaert!13
parents f86078ba 68b20486
Pipeline #1758 passed with stage
in 5 minutes and 56 seconds
......@@ -11,7 +11,7 @@ export default class MessageHandler {
this.commands = commands;
this.magicCommands = magicCommands;
this.guildOverride = /\[guild=(\d+)\]/gi;
this.guildOverride = /\[guild=(\d+)\]/i;
allOk(arguments);
}
......
import fs from 'fs';
import fsPromises from 'fs/promises';
import process from 'process';
import Discord from 'discord.js';
import ssdeep from 'ssdeep.js';
import { parseISO } from 'date-fns';
......@@ -132,7 +133,14 @@ client.on('ready', () => {
logger.log(`Logged in as ${client.user.tag}!`);
cw.start();
setInterval(() => storeConfig(config), 15000);
const storeConfigTimer = setInterval(() => storeConfig(config), 15000);
process.on('SIGTERM', () => {
clearInterval(storeConfigTimer);
cw.stop();
client.destroy();
process.exit();
});
});
client.login(config.loginToken).catch(console.error);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment