You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for the useful script, I am not very familiar with Go, that's why I have to ask my question.
How can I limit channel posts so that old servers are not added?
i tried to change:
if messages < 100 && exist {
to if messages < 1 && exist {
and also: doc = GetMessages(100
to
doc = GetMessages(1
But every time I get the previous results.
For example, for a specific channel, I get about 18 different servers, which about 16 servers are old and inactive, so i need to limit servers or channel posts. for example i need just 2 ~ 4 servers from this channel.
Also, is it possible to receive only the posts that have been published in the last 3 days instead of receiving the entire server? Most channels either change servers daily or every 2~3 days.
The text was updated successfully, but these errors were encountered:
ghost1372
changed the title
How can I limit channel posts?
How can I limit servers for each channel?
Feb 29, 2024
I tried to keep only the first 4 items and delete the rest, but it seems that the data is not stored in order.
I expected the new servers to be in the first rows...
hello , actually I wrote this script last year and I did not expect this project would get more stars ! :D
and unfortunately after that time I did not have time to optimize the script .
I will update the script soon and I will also add those features you mentioned.
First of all, thank you for the useful script, I am not very familiar with Go, that's why I have to ask my question.
How can I limit channel posts so that old servers are not added?
i tried to change:
if messages < 100 && exist {
to
if messages < 1 && exist {
and also:
doc = GetMessages(100
to
doc = GetMessages(1
But every time I get the previous results.
For example, for a specific channel, I get about 18 different servers, which about 16 servers are old and inactive, so i need to limit servers or channel posts. for example i need just 2 ~ 4 servers from this channel.
Also, is it possible to receive only the posts that have been published in the last 3 days instead of receiving the entire server? Most channels either change servers daily or every 2~3 days.
The text was updated successfully, but these errors were encountered: