<commit_before>var bot = require( '..' );
var dns = require( 'dns' );

bot.addListener( 'message', function ( nick, to, text ) {
	var args = text.split( ' ' );
	if ( args[0] === '!rdns' ) {
		try {
			dns.reverse( args[1], function ( err, data ) {
				if ( err ) {
					bot.say( to, nick + ': ' + err + ' ' + args[1] );
				} else {
					for ( var i = 0; i < data.length; i++ ) {
						bot.say( to, nick + ': ' + args[1] + ' → ' + data[i] );
					}
				}
			} );
		} catch ( e ) {
			bot.say( to, nick + ': ' + e.message );
		}
	}
} );<commit_msg>add !host as alias to !rdns<commit_after>var bot = require( '..' );
var dns = require( 'dns' );

bot.addListener( 'message', function ( nick, to, text ) {
	var args = text.split( ' ' );
	if ( args[0] === '!rdns' || args[0] === '!host' ) {
		try {
			dns.reverse( args[1], function ( err, data ) {
				if ( err ) {
					bot.say( to, nick + ': ' + err + ' ' + args[1] );
				} else {
					for ( var i = 0; i < data.length; i++ ) {
						bot.say( to, nick + ': ' + args[1] + ' → ' + data[i] );
					}
				}
			} );
		} catch ( e ) {
			bot.say( to, nick + ': ' + e.message );
		}
	}
} );
{'fraction_non_alphanumeric': 0.24049513704686118, 'fraction_numerical': 0.009725906277630416, 'mean_word_length': 2.092896174863388, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4283141', 'n_tokens_mistral': 543, 'n_tokens_neox': 464, 'n_words': 111}