Code clean-up
parent
e2de5b97bd
commit
f46d719f4c
|
@ -136,14 +136,12 @@ async function createNewThreadForUser(user, opts = {}) {
|
|||
if (cleanName === "") cleanName = "unknown";
|
||||
cleanName = cleanName.slice(0, 95); // Make sure the discrim fits
|
||||
|
||||
let temporalName = `${cleanName}-${user.discriminator}`;
|
||||
let channelName = `${cleanName}-${user.discriminator}`;
|
||||
|
||||
if (config.anonymizeChannelName) {
|
||||
temporalName = crypto.createHash("md5").update(temporalName + new Date()).digest("hex").slice(0, 12);
|
||||
channelName = crypto.createHash("md5").update(channelName + Date.now()).digest("hex").slice(0, 12);
|
||||
}
|
||||
|
||||
const channelName = temporalName;
|
||||
|
||||
console.log(`[NOTE] Creating new thread channel ${channelName}`);
|
||||
|
||||
// Figure out which category we should place the thread channel in
|
||||
|
|
Loading…
Reference in New Issue