super simple fix for race condition

should close #14
This commit is contained in:
Lamp 2019-04-25 01:40:05 +00:00
parent 4d56f3de9e
commit 2da9371fa5
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@ var nameCollector = module.exports = {
collect: async function (participant) {
if (config.testmode) return;
if (participant.name == "Anonymous" || participant.name == "Anonymoose") return;
await new Promise(r => setTimeout(r, Math.random() * 10000));
var newMsg = function(continued){
var str = `__**${participant._id}**__${continued ? ' (continued)' : ''}\n${participant.name}`;