Commit 37f691bd7a6019075458300a34db614241639b8e

Authored by Adhidarma Hadiwinoto
1 parent 0c2fc922b1
Exists in master

ping request

Showing 1 changed file with 7 additions and 0 deletions Side-by-side Diff

... ... @@ -234,10 +234,17 @@ function start(_config, _logger) {
234 234 YahooMessenger.setCustomAwayStatus(config.yahoomessenger.status);
235 235  
236 236 }
  237 + else if (message.indexOf('!ping') == 0) {
237 238  
  239 + logger.info("Ping request by pm");
  240 + pm(data.partner, 'PONG');
  241 +
  242 + }
238 243 else if (message.indexOf('!terminate') == 0) {
  244 +
239 245 logger.info("Terminate request by pm");
240 246 process.exit(code=0);
  247 +
241 248 }
242 249 }
243 250 }