New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The likeCount limited to 15 likes. #76
Comments
TikTok sends maximum 15 likes to the pool You can store each pool per user and calculate the total when you need it. |
Hi, thanks for the reply. Would you mind to show me the exact way to do that? I'm afraid I have not much knowledge on coding😅 |
Do you always need to show likes right after the user finishes their streak, or do you have an event after which you need to show the number of likes? |
Yes, I do want it to show the total likes from each respective user right after they finish their streak/screen tapping. Just to be clear, let's say they tapped 100 times non-stop and then they end their streak, it will show that they've sent 100 likes. If they tapped for 5000 times non-stop and then stopped, it will show that they've sent 5000 likes. |
I think until TikTok adds marks the start and end of the streak, it is difficult to determine with high accuracy, but you can choose your interval I'm afraid I don't have much knowledge about coding either example piece of code for server
|
Thanks for the code example. Do I just copy and paste or I still have to modify anything? If I were to replace a code from my file, do I replace the following code?:
|
Other than the lines where there is a comment (11, 22), it is better not to change anything Yes, this part of your code should be replaced to avoid duplicate |
Okay, I actually have a few differences in my code which make me kind of confused about what exactly my code should look like, I thought I could add your code just like that with a little bit of modification, but it didn't work out. Maybe you could modify the code based on what I currently have if you don't mind 😅. Alright so I have a function addMessageLike, created to display the output:
In the above function, I have a condition called confLike to proceed if only it's true. Here is my actual code for the connection:
I also put the whole code here in case you want to have a look. |
Show me how you set up data transfer from the code of server |
I'm not sure which file do I show for the data transfer set up 😅. |
Yes, I need to see how you change server.js and implemented the code I wrote earlier |
Oh. I didn't change anything in the server.js but what I did in app.js from the code you suggested earlier is:
I changed to this:
Honestly, I don't even have any idea of what I modified, that's why I was confused 😅. |
😅 As far as I understand, that library has not been updated for a long time and does not work In the case of likes, you just need to make sure that:
|
OMG it worked! Thank you very much!!! the addMessageLike is actually a custom function I made to display the data for likes when only the confLike is true. Otherwise, it needs both confLike and confComment to work which I don't want because that way it will show the comments as well when I only want to see the likes. 😁 |
I'm glad that I can some help you |
Hi, I have an issue with the like likeCount. it only logs up to 15 likes. How can I make it so that it doesn't stop at 15? It shouldn't be displaying the likeCount before the user stops tapping the screen. It should only show the final likeCount amount after the user stops tapping. Hope you can help me out with this. Thank you in advance!
The text was updated successfully, but these errors were encountered: