no longer needed since room names supported special characters, afaik

This commit is contained in:
Lamp 2020-04-11 20:37:21 -07:00 committed by GitHub
parent 8369f52f90
commit b651317345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ module.exports = {
}
}
/* new bridge */
var discordChannelName = room.replace(/[^a-zA-Z0-9]/g, '-').toLowerCase();
var discordChannelName = room;
var categoryID = config.channels.mpp_bridges;
var channel = await dClient.guilds.resolve(config.guildID).channels.create(discordChannelName, {parent: categoryID});
channel.setTopic(`http://www.multiplayerpiano.com/${encodeURIComponent(room)}`);