tvman99 Posted August 2, 2018 Report Posted August 2, 2018 I've been trying to make async/await work. If someone sends specific message they get specific pre-written reply. I've done that using friendMessage ID event. Down the road, I need to catch the user's reply to include it in the reply. Well i assume if i give you an example of it. Ofc the user should start it as long as bot does something depends on the chat message/ i call it chat command/. User: !addadminBot: Who's it? Send the steamid64 to me.User: xxxxxxxxxxxxxxxxx /*sends steamid64*/Bot: xxxxxxxxxxxxxxxxx is not in my friends list. Tell him to add me. OR Bot: xxxxxxxxxxxxxxxxx is in my friends list. Made him/her the master of me. It was an example. If you are able to, code the catching of user reply and using it in some checks then replies. Quote
Dr. McKay Posted August 2, 2018 Report Posted August 2, 2018 You're crossing into natural language processing territory there. Quote
Dr. McKay Posted August 3, 2018 Report Posted August 3, 2018 There is, but it's too in-depth to go into here. Quote
Revadike Posted August 30, 2018 Report Posted August 30, 2018 Can't you just turn the callback of the friendMessage ID event into a promise and await that in an async function? 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.