Making the chatbot recognise Discord members and give them separate context + specific greeting. (+ other suggestions) #7
Unanswered
artemiscosmo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Firstly, thanks a lot for the code! This is such an exciting way to get back to coding.
Let me get right into what I'm struggling to achieve.
For some reason:
this code does't seem to make my bot recognise the usernames. I tried using "message.author" too but still no luck. The bot still calls users "{userUsername}".
Example line from my chatCompletion.txt prompt file: - always check if {userId} = <@287404220896235617>, before referring to them as JON DOE.
I suppose there can be separate chatCompletion.txt files for different memebers (admin, moderators) but that would be the next step. I don't think the code above actually replaces the chatCompletion.txt's {userUsername} etc..
Would be grateful for any input on this. It would be so great to have this depth in the assistant. I have many ideas as a streamer. Like using twitch api and updating the chatCompletion.txt automatically when I start my livestream, with a prompt like "STREAMER IS CURRENTLY LIVE, THIS IS AUTOGENERATED TO LET YOU KNOW THAT THE STREAMER IS LIVE AND YOU CAN TELL PEOPLE THAT STREAMER IS CURRENTLY LIVE" -- this can be replaced but the same message but in reverse (when I go offline) now the assistant knows when the admin is streaming or not and can intelligently tell people about it.
Another idea I had was making it understand timing while seeing the list of online members of the server so that the bot can randomly tag someone who is online and ask them how they are.
One last thing that would be incredible is letting it update it's own chatCompletion.txt. So imagine i'm the admin and I'm telling it things to remember and then it would add it as a text line in chatCompletion.txt for later reference. This sounds a bit complex, perhaps might not even be possible. I'm not sure.
Beta Was this translation helpful? Give feedback.
All reactions