13.2.0 configure work limiter && better default guild settings handler
This commit is contained in:
5 files changed
+60
-38
No files matched your search
+2
-1
@@ -64,7 +64,8 @@ module.exports = {
|
||||
diff /= (60 * 60);
|
||||
let hoursBetweenDates = Math.abs(Math.round(diff));
|
||||
|
||||
if (hoursBetweenDates >= 24) {
|
||||
// work limiter is # of hours to wait before next time a user can use /work
|
||||
if (hoursBetweenDates >= GuildDB.workLimiter) {
|
||||
let workRoles = []
|
||||
let workPays = []
|
||||
for (let i = 0; i < GuildDB.incomeRoles.length; i++) {
|
||||
|
||||
Reference in new issue
Block a user