mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-24 01:23:52 -06:00
current timeframe identification working
This commit is contained in:
parent
1ddf1c118c
commit
418afc3b98
@ -182,8 +182,8 @@ export default class MapVote extends DiscordBasePlugin {
|
|||||||
console.log(activeTimeframes)
|
console.log(activeTimeframes)
|
||||||
|
|
||||||
function tfFilter(tf) {
|
function tfFilter(tf) {
|
||||||
const tfStartSplit = tf.start.split(':').forEach((e, k, a) => a[ k ] = parseInt(e))
|
const tfStartSplit = [parseInt(tf.start.split(':')[0]),parseInt(tf.start.split(':')[1])];
|
||||||
const tfEndSplit = tf.end.split(':').forEach((e, k, a) => a[ k ] = parseInt(e))
|
const tfEndSplit = [parseInt(tf.end.split(':')[0]),parseInt(tf.end.split(':')[1])];
|
||||||
|
|
||||||
const tfStart = new Date(0, 0, 0, ...tfStartSplit)
|
const tfStart = new Date(0, 0, 0, ...tfStartSplit)
|
||||||
const tfStart2 = new Date(0, 0, 0, 0, 0)
|
const tfStart2 = new Date(0, 0, 0, 0, 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user