Study-Together-Org / time_counter

12 stars 5 forks source link

New channels (categories) not being counted #56

Closed nadir7379 closed 3 years ago

nadir7379 commented 3 years ago

2 new batches of study channels have been added, both named ' Group studying ' , see below image

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 image

The error I got ( ? ) : image

Zackhardtoname commented 3 years ago

I think the IDs don't match image If so, could you change config.hjson and retest it?

Totti56 commented 3 years ago

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

image 834880241863622727 834880336214360134

Zackhardtoname commented 3 years ago

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

nadir7379 commented 3 years ago

@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

Zackhardtoname commented 3 years ago

Ok can you also add group 3 to the config.hjson file?

nadir7379 commented 3 years ago

Ok can you also add group 3 to the config.hjson file?

It has, actually.

pushed this to the config.hjson file, accordingly ^

image

Did I do something wrong?

Zackhardtoname commented 3 years ago

Did you restart v2?

Totti56 commented 3 years ago

Me copying group studying 3 category gives this id: 712997079596924948, which is different from in the picture.

nadir7379 commented 3 years ago

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

nadir7379 commented 3 years ago

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 ?

Zackhardtoname commented 3 years ago

No. You should push the change to this github repo and run the restart.sh command I showed you

nadir7379 commented 3 years ago

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