Closed nadir7379 closed 3 years ago
I think the IDs don't match If so, could you change config.hjson and retest it?
Nadir is referencing to the newly created categories like he showed in his image which have calls in it that aren't shown to the public yet. The ID of the category you sent is the category that was already added, but Nadir is getting this error probably when he is trying to add 2 new categories.
2 new batches of study channels have been added, both named ' Group studying ' , see below
834880241863622727 834880336214360134
Yeah it turns out it was because we used the same name for both categories and I was taking in the data as a dictionary
@nadir7379 Can you try to rename those categories as follows https://github.com/Study-Together-Org/time_counter/blob/137363c12ceefff7617ba443814bfd0ac336bbf1/config.hjson#L116-L117
@Zackhardtoname Just changed the categories to names:
group studying 1
group studying 2
group studying 3
(the old 'group studying')
pushed this to the config.hjson file, accordingly ^
now it seems group studying 3 is not counting, while 1 and 2 are? Not sure what the problem is
Ok can you also add group 3 to the config.hjson file?
Ok can you also add group 3 to the config.hjson file?
It has, actually.
pushed this to the config.hjson file, accordingly ^
Did I do something wrong?
Did you restart v2?
Me copying group studying 3 category gives this id: 712997079596924948
, which is different from in the picture.
Me copying group studying 3 category gives this id: 712997079596924948
Odd, will push now. Perhaps did something wrong when copying.
Did you restart v2? Yeah, v2 was succesfully restarted then.
I'll try and update here
This time I changed the group3 ID to 712997079596924948
, as Totti proposed. This should indeed be the correct ID.
The file was pushed to FileZilla
I killed the time_counter.py
process in the VPS, then did the following commands:
cd 2.0
source venv/bin/activate
nohup python3 time_counter.py &
I assume using above commands the Study!Counter bot was succesfully restarted
However it seems group3 category is still not counting. Did I do the restart correctly @Zackhardtoname ?
No. You should push the change to this github repo and run the restart.sh command I showed you
No. You should push the change to this github repo and run the restart.sh command I showed you
Done as above - it works now! All categories counting as supposed. Thanks Zack! Thread closed
2 new batches of study channels have been added, both named ' Group studying ' , see below
The ID of those categories have been added to the config.hjson in the files. The time counter was then restarted.
Issue: Time is still not being counted in those categories
Category 1: 834880241863622727 Category 2: 834880336214360134
Picture of config.hsjon
The error I got ( ? ) :