Improve the response when a user requests a bot to join
This commit is contained in:
@@ -84,6 +84,8 @@ async function joinServerWrapper(presetName, channelId, clientIdsUsed) {
|
||||
const nodeConnection = await addNodeConnection(selectedNode, selectedClientId);
|
||||
log.DEBUG("Node Connection: ", nodeConnection);
|
||||
});
|
||||
|
||||
return selectedClientId;
|
||||
}
|
||||
exports.joinServerWrapper = joinServerWrapper;
|
||||
|
||||
@@ -136,8 +138,9 @@ module.exports = {
|
||||
|
||||
log.DEBUG("Online Bots: ", onlineBots);
|
||||
|
||||
await joinServerWrapper(presetName, channelId, onlineBots.online);
|
||||
await interaction.editReply('**Pong.**');
|
||||
const selectedClientId = await joinServerWrapper(presetName, channelId, onlineBots.online);
|
||||
|
||||
await interaction.editReply(`Ok, ${interaction.member}. **${selectedClientId.name}** is joining your channel.`);
|
||||
//await interaction.channel.send('**Pong.**'); // This will send a message to the channel of the interaction outside of the initial reply
|
||||
}catch(err){
|
||||
log.ERROR(err)
|
||||
|
||||
Reference in New Issue
Block a user