Merge pull request #216 from Shanomac99/main

Changer layer image URL to new hosting location.
This commit is contained in:
Thomas Smyth 2021-10-30 11:12:48 +01:00 committed by GitHub
commit f2a2b49c55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ export default class Layer {
constructor(data) { constructor(data) {
this.name = data.Name; this.name = data.Name;
this.classname = data.levelName; this.classname = data.levelName;
this.layerid = data.rawName
this.map = { this.map = {
name: data.mapName name: data.mapName
}; };

View File

@ -89,7 +89,7 @@ export default class DiscordServerStatus extends DiscordBaseMessageUpdater {
// Set layer image. // Set layer image.
embed.setImage( embed.setImage(
this.server.currentLayer this.server.currentLayer
? `https://raw.githubusercontent.com/Squad-Wiki-Editorial/squad-wiki-pipeline-map-data/master/completed_output/_Current%20Version/images/${this.server.currentLayer.classname}.jpg` ? `https://squad-data.nyc3.cdn.digitaloceanspaces.com/main/${this.server.currentLayer.layerid}.jpg`
: undefined : undefined
); );