I am trying to read the user input and use it outside of the function. How can I do this? I have tried using return and let statements.
Code:
Prompts.ts
export async function botNameValue() {
const botResp = await prompts({
type: 'text',
name: 'botName',
message: 'Enter Bot Name'
});
return botResp;
}
Prompt is being executed this way:
export async function Prompter() {
await botNameValue()
await TokenValue()
await GuildIDValue()
await SelectionValue()
}