mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-23 18:23:52 -06:00
maybe fixed?
This commit is contained in:
parent
ed7e35e99c
commit
1bcb5e5bdf
@ -179,7 +179,7 @@ export default class MapVote extends DiscordBasePlugin {
|
||||
|
||||
let logTimeframe = "Active Time Frames: ";
|
||||
let activeTfIds = [];
|
||||
this.options = this.or_options;
|
||||
this.options = { ...this.or_options };
|
||||
for (let atfK in activeTimeframes) {
|
||||
const atf = activeTimeframes[ atfK ];
|
||||
activeTfIds.push(atf.name || atf.id);
|
||||
@ -190,7 +190,7 @@ export default class MapVote extends DiscordBasePlugin {
|
||||
this.verbose(1, logTimeframe + activeTfIds.join(', '));
|
||||
|
||||
function tfFilter(tf, key, arr) {
|
||||
const timeNow = tf.utcTime?new Date(0, 0, 0, new Date().getUTCHours(), new Date().getUTCMinutes()):new Date(0, 0, 0, new Date().getHours(), new Date().getMinutes());
|
||||
const timeNow = tf.utcTime ? new Date(0, 0, 0, new Date().getUTCHours(), new Date().getUTCMinutes()) : new Date(0, 0, 0, new Date().getHours(), new Date().getMinutes());
|
||||
|
||||
arr[ key ].id = key + 1;
|
||||
const tfStartSplit = [ parseInt(tf.start.split(':')[ 0 ]), parseInt(tf.start.split(':')[ 1 ]) ];
|
||||
|
Loading…
x
Reference in New Issue
Block a user