Skip to content

Commit

Permalink
Add quest crash response
Browse files Browse the repository at this point in the history
  • Loading branch information
PF2K committed Mar 31, 2024
1 parent 22d5bff commit f39b98a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions internal/bot/cmd/technical.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,30 @@ func NewChangeUsername() *GlobalCommand {
Response: "Greetings! You may send a message to one of the Moderators with your current name in-game, and your desired name. If the username isn't already taken, you will get your account renamed. Remember, one rename per account!",
}
}

// NewQuestCrashes create an assistance command for when quests crash and users need to abandon and retake them.
func NewQuestCrashes() *GlobalCommand {
return &GlobalCommand{
TimeoutTrigger: TimeoutTrigger{
CommandTrigger: &SentenceDetection{
Detector: &detect.SentenceDetector{
Question: detect.QuestionOnly,
Groups: []detect.WordGroup{
{Words: []string{"quest"}},
{Words: []string{"crash", "exit"}},
},
Variants: []detect.SentenceDetector{
{
Question: detect.QuestionOnly,
Groups: []detect.WordGroup{
{Words: []string{"mission"}},
{Words: []string{"objective", "hard crash", "bugged", "exit"}},
},
},
},
},
},
},
Response: "Greetings! Try abandoning your quest from your Quest Log and taking it again from the Quest Giver! In most cases, this solves the crashing issue for quests.",
}
}

0 comments on commit f39b98a

Please sign in to comment.