!time command no longer tracking user time spent in chat


#1

Java Version: 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12
OS Version: Linux 3.14.32-xxxx-grs-ipv6-64 (amd64)
Panel Version: 1.1
PhantomBot Version: 2.3.9.1-NB-20171124 (Revision: 88d3b53)

Description of Issue:
For a while, the !time command hasn’t been tracking accumulated time of users in chat. Lots of users are stuck at 0 minutes.


#2

Did you edit anything manually in the database?


#3

Once, a while back, but it had been working after the manual edit.


#4

Are points still being added? Just want to make sure the issue isn’t something else.


#5

pointSystem.js is disabled - this is about !time


#6

I did !module disable ./core/timeSystem.js in chat and nothing happened


#7

Core modules cannot be disabled, I asked about the points system because both use the same logic, which would’ve confirmed if you have a corrupted database or not. Since you did edit your database a while back, try with a fresh one as a test to see if the bot adds time again.


#8

Fixed in 66e5173


#9

No, this problem still isn’t fixed. @IllusionaryOne b/c I saw you discussing with another poster on the subject. This is about !time, not !points, but I understand they use the same logic.

Java Version: 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12
OS Version: Linux 3.14.32-xxxx-grs-ipv6-64 (amd64)
Panel Version: 1.1
PhantomBot Version: 2.3.9.1-NB-20171201 (Revision: 52aed06)

Dev flag: off
Tried with a fresh DB. Bot did not add time to users.
Using builtin db, nothing custom
Bot has always been updated according to published protocol.
Some custom scripts added, nothing core changed.

Panel screenshots


#10

Latest Master branch, I destroyed my time table and put in some Console statements:

[12-06-2017 @ 19:58:14.216 GMT] PhantomBot Version: 2.3.9.1
[12-06-2017 @ 19:58:14.216 GMT] Build Revision: dc3fefe9
...
[12-06-2017 @ 12:59:16.746 MST] time
[12-06-2017 @ 12:59:16.747 MST] add time illusionarybot
[12-06-2017 @ 12:59:16.749 MST] get illusionarybot > 60
[12-06-2017 @ 13:00:16.748 MST] time
[12-06-2017 @ 13:00:16.749 MST] add time illusionarybot
[12-06-2017 @ 13:00:16.751 MST] get illusionarybot > 120
time
[12-06-2017 @ 13:00:34.669 MST] [MUTED] @IllusionaryBot, you currently have spent  2 minutes in the chat.
[12-06-2017 @ 13:01:16.748 MST] time
[12-06-2017 @ 13:01:16.749 MST] add time illusionarybot
[12-06-2017 @ 13:01:16.751 MST] get illusionarybot > 180
time
[12-06-2017 @ 13:01:21.005 MST] [MUTED] @IllusionaryBot, you currently have spent  3 minutes in the chat.

I will let it run for a while longer and make sure it keeps up properly.


#11

I dug more, and found an issue I think in the Nightly when I was examining the $.users and users variables. Going to try something out.


#12

Ok, think I found it, but I want to run it for a while in my test chat.


#13

Can try this:

Which will be in the next Nightly Build. You can read the notes that I put in there that help to illustrate how I found it.


#14

This topic was automatically closed after 30 days. New replies are no longer allowed.