Frohser Posted February 21, 2018 Report Posted February 21, 2018 (edited) I want have in my bot command for show trade url and for change trade url, trying to do that like that but... after this not working, I was thinking how to do that. Any help? if (command == '!tradelink') { community.on('getTradeURL', function(err, url) { if (err) { console.log("(" + dateTime() + " |" + dateTime(true) + ")" + " Trade link err: " + err); } else { console.log("(" + dateTime() + " |" + dateTime(true) + ")" + " Trade link: " + url); client.chatMessage(config.adminID, "Trade link: " + url); } }); } To be sure: [email protected] Edited February 21, 2018 by Frohser Quote
Dr. McKay Posted February 21, 2018 Report Posted February 21, 2018 You're adding an event listener named getTradeURL, not calling a method. community.getTradeURL(... Frohser 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.