no longer needed since room names supported special characters, afaik
This commit is contained in:
parent
8369f52f90
commit
b651317345
|
@ -31,7 +31,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* new bridge */
|
/* new bridge */
|
||||||
var discordChannelName = room.replace(/[^a-zA-Z0-9]/g, '-').toLowerCase();
|
var discordChannelName = room;
|
||||||
var categoryID = config.channels.mpp_bridges;
|
var categoryID = config.channels.mpp_bridges;
|
||||||
var channel = await dClient.guilds.resolve(config.guildID).channels.create(discordChannelName, {parent: categoryID});
|
var channel = await dClient.guilds.resolve(config.guildID).channels.create(discordChannelName, {parent: categoryID});
|
||||||
channel.setTopic(`http://www.multiplayerpiano.com/${encodeURIComponent(room)}`);
|
channel.setTopic(`http://www.multiplayerpiano.com/${encodeURIComponent(room)}`);
|
||||||
|
|
Loading…
Reference in New Issue