var bot = require( 'nodemw' ),
	readline = require( 'readline' ),
	rl = readline.createInterface( {
		input: process.stdin,
		output: process.stdout
	} ),
	client = new Bot( {
		protocol: 'https',
		server: 'dev.fandom.com',
		path: ''
	} ),
	params = {
		action: 'scribunto-console',
		title: 'Module:CLI/testcases/title',
		clear: true
	};

function session( err, content ) {
	params.content = content;
	rl.on( 'line', cli );
}

function cli( input ) {
	params.question = input;
	client.api.call( params, call );
}

function call( err, info, next, data ) {
	if ( err ) {
		console.error( err );
	} else if ( data.type === 'error' ) {
		console.error( data.message );
	} else {
		console.log( data.print );
	}
}

client.getArticle( params.title, session );

@@ -1,13 +1,13 @@
 var 
-b
+B
 ot = req

Fix unused and undefined vars