Skip to content

Commit

Permalink
Changed layer images to new hosting location.
Browse files Browse the repository at this point in the history
Added rawName data type so images uses the correct data.
  • Loading branch information
Shanomac99 committed Oct 30, 2021
1 parent 19e3e75 commit fad74b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions squad-server/layers/layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export default class Layer {
constructor(data) {
this.name = data.Name;
this.classname = data.levelName;
this.layerid = data.rawName
this.map = {
name: data.mapName
};
Expand Down
2 changes: 1 addition & 1 deletion squad-server/plugins/discord-server-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default class DiscordServerStatus extends DiscordBaseMessageUpdater {
// Set layer image.
embed.setImage(
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
);

Expand Down

0 comments on commit fad74b1

Please sign in to comment.