DotNetWikiBot Framework Documentation
Assembly: DotNetWikiBot (in DotNetWikiBot.dll) Version: 0.0.0.0
Returns true, if user has confirmed the action.
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: DotNetWikiBotAssembly: DotNetWikiBot (in DotNetWikiBot.dll) Version: 0.0.0.0
Syntax
C# |
---|
public static bool UserConfirms() |
Return Value
Type: BooleanReturns true, if user has confirmed the action.
Examples
Copy | |
---|---|
if (Bot.askConfirm) { Console.Write("Some action on live wiki is going to occur.\n\n"); if(!Bot.UserConfirms()) return; } |