From a38125d3ee29649d478de46e1cbcc83023e2500a Mon Sep 17 00:00:00 2001 From: Kyle Smith Date: Thu, 13 Aug 2015 12:08:45 -0500 Subject: [PATCH] Move stuff to an order that makes sense --- examples/example.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/example.js b/examples/example.js index 70d301e..5536afe 100644 --- a/examples/example.js +++ b/examples/example.js @@ -9,12 +9,12 @@ var ChildBot = function () { util.inherits(ChildBot, ParentBot); -var Bot = new ChildBot('username', 'password'); //initiate the constructor, 1st arg is username, 2nd is password, 3rd (optional) is an options object - ChildBot.prototype._onFriendMsg = function (steamID, message, chatter, type) { //overwrite default event handlers this.logger.info(steamID + ' sent: ' + message); } +var Bot = new ChildBot('username', 'password'); //initiate the constructor, 1st arg is username, 2nd is password, 3rd (optional) is an options object + Bot.steamTrading.on('tradeProposed', function (tradeID, steamID) { //create your own listeners Bot.steamTrading.respondToTrade(tradeID, false); Bot.logger.verbose('Trade request from ' + steamID);