Ze das Couves Posted April 10, 2021 Report Share Posted April 10, 2021 (edited) How do I when someone sends the link to a steam profile in the chat send request automatically Edited April 11, 2021 by Ze das Couves Quote Link to comment Share on other sites More sharing options...
venfiw Posted April 11, 2021 Report Share Posted April 11, 2021 (edited) client.on('friendMessage', function(steamID, message){ var msg_him=Object.keys(Config.reply); var msg_my=Object.values(Config.reply); var replycount=msg_my.length; for (var i = replycount - 1; i >= 0; i--) { if (message==msg_him[i]) { //if (message.indexOf(msg_him[i]) >= 0) client.chatMessage(steamID,msg_my[i]); } } }) Config.js "reply":{ "谁是大帅比":"当然是venfiw", "代购":"当前代购折扣为:8折,需要7天以上Steam好友,请用QQ联系我, 554515860", "hello":"hi" } when some send hello in chat, ur bot will send hi or u can use : if (message.indexOf(msg_him) >= 0) when some send hello*** in chat, ur bot will send hi Edited April 11, 2021 by venfiw Quote Link to comment Share on other sites More sharing options...
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.