mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
Added hohoho
command to force Christmas
This commit is contained in:
parent
9138248954
commit
07b64aa696
@ -729,6 +729,7 @@
|
|||||||
"websocket-started": "Started websocket at %s",
|
"websocket-started": "Started websocket at %s",
|
||||||
"chatbot-cannot_accept_any_more_of_gift": "You cannot accept any more of this gift",
|
"chatbot-cannot_accept_any_more_of_gift": "You cannot accept any more of this gift",
|
||||||
"chatbot-halloween_event_enabled": "Halloween event has been enabled, restart your game client before starting a raid",
|
"chatbot-halloween_event_enabled": "Halloween event has been enabled, restart your game client before starting a raid",
|
||||||
|
"chatbot-christmas_event_enabled": "Christmas event has been enabled, restart your game client before starting a raid",
|
||||||
"chatbot-added_stash_rows_please_restart": "Added 2 rows to stash, please restart your game to see them",
|
"chatbot-added_stash_rows_please_restart": "Added 2 rows to stash, please restart your game to see them",
|
||||||
"chatbot-snow_enabled": "Snow is enabled for all subsequent raids until the server is restarted"
|
"chatbot-snow_enabled": "Snow is enabled for all subsequent raids until the server is restarted"
|
||||||
}
|
}
|
||||||
|
@ -182,6 +182,19 @@ export class SptDialogueChatBot implements IDialogueChatBot {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (requestInput === "hohoho") {
|
||||||
|
const enableEventResult = this.seasonalEventService.forceSeasonalEvent(SeasonalEventType.CHRISTMAS);
|
||||||
|
if (enableEventResult) {
|
||||||
|
this.mailSendService.sendUserMessageToPlayer(
|
||||||
|
sessionId,
|
||||||
|
sptFriendUser,
|
||||||
|
this.randomUtil.getArrayValue([
|
||||||
|
this.localisationService.getText("chatbot-christmas_event_enabled"),
|
||||||
|
]),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (requestInput === "givemespace") {
|
if (requestInput === "givemespace") {
|
||||||
const stashRowGiftId = "StashRows";
|
const stashRowGiftId = "StashRows";
|
||||||
const maxGiftsToSendCount = this.coreConfig.features.chatbotFeatures.commandUseLimits[stashRowGiftId] ?? 5;
|
const maxGiftsToSendCount = this.coreConfig.features.chatbotFeatures.commandUseLimits[stashRowGiftId] ?? 5;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user