mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-04-25 15:36:31 -05:00
Add Salmon Run weapon names to tweet
This commit is contained in:
parent
a04b6e77f6
commit
c82dd0a311
|
|
@ -22,13 +22,22 @@ export default class SalmonRunTweet extends TweetGenerator
|
|||
async _getStatus() {
|
||||
let schedule = await this.getActiveSchedule();
|
||||
|
||||
let lines = [];
|
||||
|
||||
let hasMysteryWeapon = schedule.settings.weapons.some(w => w.name === 'Random');
|
||||
|
||||
if (hasMysteryWeapon) {
|
||||
return `Salmon Run is now open on ${schedule.settings.coopStage.name} with MYSTERY WEAPONS! #salmonrun #splatoon3`;
|
||||
lines.push(`Salmon Run is now open on ${schedule.settings.coopStage.name} with MYSTERY WEAPONS! #salmonrun #splatoon3`);
|
||||
} else {
|
||||
lines.push(`Salmon Run is now open on ${schedule.settings.coopStage.name}! #salmonrun #splatoon3`);
|
||||
}
|
||||
|
||||
return `Salmon Run is now open on ${schedule.settings.coopStage.name}! #salmonrun #splatoon3`;
|
||||
lines.push('');
|
||||
|
||||
lines.push('Current weapons:');
|
||||
lines.push(...schedule.settings.weapons.map(w => `– ${w.name}`));
|
||||
|
||||
return lines.join('\n');
|
||||
}
|
||||
|
||||
/** @param {ScreenshotHelper} screenshotHelper */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user