Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit aee4928

Browse files
authored
Adjust activity command for vote 1047 (#139)
1 parent ab86a03 commit aee4928

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/yogstation/yogbot/listeners/commands/ActivityCommand.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ SELECT adminlist.ckey as 'Ckey',
5757
FROM %s as rolelog
5858
WHERE rolelog.ckey = adminlist.ckey
5959
AND rolelog.job = 'Admin'
60-
AND rolelog.datetime > (Now() - INTERVAL 2 week)) / 60, 1), 0) as Activity
60+
AND rolelog.datetime > (Now() - INTERVAL 1 month)) / 60, 1), 0) as Activity
6161
FROM admin_tmp as adminlist;
6262
"""
6363

@@ -198,7 +198,7 @@ FROM admin_tmp as adminlist;
198198
val line = StringBuilder()
199199
val loa = loaAdmins.contains(activity.ckey)
200200
val exempt = exemptRanks.contains(activity.rank.groupId)
201-
if (activity.activity >= 12) line.append('+') else if (loa || exempt) line.append(' ') else line.append(
201+
if (activity.activity >= 20) line.append('+') else if (loa || exempt) line.append(' ') else line.append(
202202
'-'
203203
)
204204
line.append(' ')

0 commit comments

Comments
 (0)