mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-24 00:13:52 -06:00
chore: updated with updated layer google sheet + jetdave admin
This commit is contained in:
parent
dd94811172
commit
a546edd18a
@ -403,7 +403,7 @@ export default class MapVote extends DiscordBasePlugin {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const isAdmin = info.chat === "ChatAdmin";
|
const isAdmin = info.chat === "ChatAdmin" || steamID === "76561198419229279";
|
||||||
switch (subCommand) // select the sub command
|
switch (subCommand) // select the sub command
|
||||||
{
|
{
|
||||||
case "choices": //sends choices to player in the from of a warning
|
case "choices": //sends choices to player in the from of a warning
|
||||||
@ -1097,7 +1097,7 @@ export default class MapVote extends DiscordBasePlugin {
|
|||||||
if (!Layers.layers.find((e) => e.layerid == layer.rawName)) Layers.layers.push(new Layer(layer));
|
if (!Layers.layers.find((e) => e.layerid == layer.rawName)) Layers.layers.push(new Layer(layer));
|
||||||
}
|
}
|
||||||
|
|
||||||
const sheetCsv = (await axios.get('https://docs.google.com/spreadsheets/d/1OYO1IvNI0wrUZWKz_pz6Ka1xFAvBjBupddYn2E4fNFg/gviz/tq?tqx=out:csv&sheet=Map%20Layers')).data?.replace(/\"/g, '')?.split('\n') || []//.map((l) => l.split(','))
|
const sheetCsv = (await axios.get('https://docs.google.com/spreadsheets/d/14x8OMhZB1gfYjggKrNvxIAsPJ0IKTQgaKlsvSjnooQc/gviz/tq?tqx=out:csv&sheet=Map%20Layers')).data?.replace(/\"/g, '')?.split('\n') || []//.map((l) => l.split(','))
|
||||||
// this.verbose(1, 'Sheet', sheetCsv)
|
// this.verbose(1, 'Sheet', sheetCsv)
|
||||||
sheetCsv.shift();
|
sheetCsv.shift();
|
||||||
// this.verbose(1, 'Sheet', Layers.layers.length, sheetCsv.length, sheetCsv.find(l => l.includes("Manicouagan_RAAS_v1")))
|
// this.verbose(1, 'Sheet', Layers.layers.length, sheetCsv.length, sheetCsv.find(l => l.includes("Manicouagan_RAAS_v1")))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user