Jump to content


Photo
Question

Error ReferenceError: community is not defined

node.js node-steamcommunity

Best Answer Dr. McKay , 03 August 2018 - 10:00 AM

You never defined any variable named community.

Go to the full post


  • Please log in to reply
1 reply to this topic

#1 RedyyPT

RedyyPT

    Newbie

  • Member
  • Pip
  • 7 posts

Posted 02 August 2018 - 07:22 PM

community.postUserComment(steam, ':metallove:  sɪɢɴᴇᴅ ʙʏ ʀᴇᴅᴅʏ  sɪɢɴᴇᴅ ʙʏ ʀᴇᴅᴅʏ , ғᴜɴᴅᴀᴅᴏʀ ᴅᴀ ᴄᴏᴍᴜɴɪᴅᴀᴅᴇ ᴄʜᴇᴀᴅᴄᴏᴍᴍᴜɴɪᴛʏ :metallove:')
        ^
 
ReferenceError: community is not defined
    at SteamUser.<anonymous> (/root/bot/bot.js:275:9)
    at SteamUser.emit (events.js:187:15)
    at SteamUser._emitIdEvent (/root/bot/node_modules/steam-user/components/utility.js:29:12)
    at SteamUser._handlers.(anonymous function) (/root/bot/node_modules/steam-user/components/chat.js:281:9)
    at SteamUser._handleMessage (/root/bot/node_modules/steam-user/components/messages.js:249:30)
    at CMClient.emit (events.js:182:13)
    at CMClient._netMsgReceived (/root/bot/node_modules/steam-client/lib/cm_client.js:323:8)
    at CMClient.handlers.(anonymous function) (/root/bot/node_modules/steam-client/lib/cm_client.js:603:8)
    at CMClient._netMsgReceived (/root/bot/node_modules/steam-client/lib/cm_client.js:305:24)
    at TCPConnection.emit (events.js:182:13)
 
config bot: 
 

client.on("friendMessage", function(steam, message) {
    if (message == "!assinar") {
        client.chatMessage(steam, "O Teu perfil agora está assinado por mim. Aproveita")
        community.postUserComment(steam, ':metallove:  sɪɢɴᴇᴅ ʙʏ ʀᴇᴅᴅʏ  , ғᴜɴᴅᴀᴅᴏʀ ᴅᴀ ᴄᴏᴍᴜɴɪᴅᴀᴅᴇ ᴄʜᴇᴀᴅᴄᴏᴍᴍᴜɴɪᴛʏ :metallove:')
}})

 



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,817 posts

Posted 03 August 2018 - 10:00 AM   Best Answer

You never defined any variable named community.


  • RedyyPT likes this





Also tagged with one or more of these keywords: Question, node.js, node-steamcommunity

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users