From 6663692c1f8903d0a09e6094f07100b139762819 Mon Sep 17 00:00:00 2001 From: sldless <67599596+sldless@users.noreply.github.com> Date: Wed, 15 Dec 2021 07:32:45 -0500 Subject: [PATCH] Update chatSend.js Using message.author.id as the uid will set custom chatbot for each user like if the user ask "What my name?" if it doesn't know it it will ask you for your name and if it does it will say it --- util/chatSend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/chatSend.js b/util/chatSend.js index fca67f2..7702088 100644 --- a/util/chatSend.js +++ b/util/chatSend.js @@ -6,7 +6,7 @@ const chatSend = async (message) => { try { let bid = process.env.bid // Your Bid From Brainshop.ai let key = process.env.key // Your Key From Brainshop.ai - let uid = "1" + let uid = message.author.id let msg = message.content message.channel.startTyping() await axios.get(`http://api.brainshop.ai/get?bid=${bid}&key=${key}&uid=${uid}&msg=${msg}`)