Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Commit

Permalink
Move stuff to an order that makes sense
Browse files Browse the repository at this point in the history
  • Loading branch information
kjsmita6 committed Aug 13, 2015
1 parent 7838d95 commit a38125d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a38125d

Please sign in to comment.