Skip to content
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

How can I limit servers for each channel? #5

Open
ghost1372 opened this issue Feb 29, 2024 · 2 comments
Open

How can I limit servers for each channel? #5

ghost1372 opened this issue Feb 29, 2024 · 2 comments

Comments

@ghost1372
Copy link

ghost1372 commented Feb 29, 2024

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.

@ghost1372 ghost1372 changed the title How can I limit channel posts? How can I limit servers for each channel? Feb 29, 2024
@ghost1372
Copy link
Author

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...

@mrvcoder
Copy link
Owner

mrvcoder commented Mar 1, 2024

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.

thanks for the feedback and opening a issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants