SwayerPT / Steam-Boost-Hour-Bot

Steam Boost Hour [Bot] - A special bot that can change your entire steam value in Hours and Drops.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

client.sendMessage is not a function

ext2ed opened this issue · comments

commented

/root/Steam-Hour-Bot/appbot.js:114
client.sendMessage(steamID, "Thank you for Added me. We talk later.");
^

TypeError: client.sendMessage is not a function
at SteamUser.client.on (/root/Steam-Hour-Bot/appbot.js:114:16)
at SteamUser.emit (events.js:189:13)
at SteamUser._emitIdEvent (/root/node_modules/steam-user/components/utility.js:29:12)
at /root/node_modules/steam-user/components/friends.js:595:9
at Array.forEach ()
at SteamUser._handlers.(anonymous function) (/root/node_modules/steam-user/components/friends.js:573:23)
at SteamUser._handleMessage (/root/node_modules/steam-user/components/messages.js:249:30)
at CMClient.emit (events.js:189:13)
at CMClient._netMsgReceived (/root/node_modules/steam-client/lib/cm_client.js:323:8)
at CMClient.handlers.(anonymous function) (/root/node_modules/steam-client/lib/cm_client.js:609:8)

commented

it should change "client.sendMessage" to "client.chatMessage"
Thanks your code.

Hi friend, sorry not answering before. Your request has been accepted in that day and changed in code. You can now download new updates for your bot with bug fixes and new features.