DotNetWikiBot Framework Documentation
This function asks user to confirm next action. The message "Would you like to proceed (y/n/a)? " is displayed and user response is evaluated. Make sure to set askConfirm variable to "true" before calling this function.

Namespace: DotNetWikiBot
Assembly: DotNetWikiBot (in DotNetWikiBot.dll) Version: 0.0.0.0

Syntax

C#
public static bool UserConfirms()

Return Value

Type: Boolean
Returns true, if user has confirmed the action.

Examples

 Copy imageCopy
if (Bot.askConfirm) {
    Console.Write("Some action on live wiki is going to occur.\n\n");
    if(!Bot.UserConfirms())
        return;
}

See Also