-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove close ticket cta with something else, fix bug where messages t…
…hat only have few words trigger the check
- Loading branch information
1 parent
728735e
commit bfabda2
Showing
15 changed files
with
161 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/main/kotlin/net/perfectdreams/loritta/helper/serverresponses/AutomatedSupportResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package net.perfectdreams.loritta.helper.serverresponses | ||
|
||
import net.perfectdreams.loritta.api.messages.LorittaReply | ||
|
||
data class AutomatedSupportResponse( | ||
val replies: List<LorittaReply>, | ||
val includeCloseTicketCallToAction: Boolean, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 10 additions & 6 deletions
16
...dreams/loritta/helper/serverresponses/sparklypower/HowToBuyPesadelosNaiveBayesResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
package net.perfectdreams.loritta.helper.serverresponses.sparklypower | ||
|
||
import net.perfectdreams.loritta.api.messages.LorittaReply | ||
import net.perfectdreams.loritta.helper.serverresponses.AutomatedSupportResponse | ||
|
||
class HowToBuyPesadelosNaiveBayesResponse(sparklyNaiveBayes: SparklyNaiveBayes) : SparklyNaiveBayesResponse(SparklyNaiveBayes.QuestionCategory.BUY_PESADELOS, sparklyNaiveBayes) { | ||
override fun getResponse(message: String): List<LorittaReply> { | ||
return listOf( | ||
LorittaReply( | ||
"Você pode comprar pesadelos acessando o meu website! https://sparklypower.net/loja", | ||
"<:pantufa_coffee:853048446981111828>" | ||
) | ||
override fun getSupportResponse(message: String): AutomatedSupportResponse { | ||
return AutomatedSupportResponse( | ||
listOf( | ||
LorittaReply( | ||
"Você pode comprar pesadelos acessando o meu website! https://sparklypower.net/loja", | ||
"<:pantufa_coffee:853048446981111828>" | ||
) | ||
), | ||
false | ||
) | ||
} | ||
} |
30 changes: 17 additions & 13 deletions
30
...kotlin/net/perfectdreams/loritta/helper/serverresponses/sparklypower/HowToVoteResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
package net.perfectdreams.loritta.helper.serverresponses.sparklypower | ||
|
||
import net.perfectdreams.loritta.api.messages.LorittaReply | ||
import net.perfectdreams.loritta.helper.serverresponses.AutomatedSupportResponse | ||
import net.perfectdreams.loritta.helper.serverresponses.QuickAnswerResponse | ||
|
||
class HowToVoteResponse : QuickAnswerResponse() { | ||
override fun getResponse(message: String) = | ||
listOf( | ||
LorittaReply( | ||
"Você pode votar no servidor acessando o meu website! https://sparklypower.net/votar", | ||
"<:pantufa_coffee:853048446981111828>" | ||
override fun getSupportResponse(message: String) = | ||
AutomatedSupportResponse( | ||
listOf( | ||
LorittaReply( | ||
"Você pode votar no servidor acessando o meu website! https://sparklypower.net/votar", | ||
"<:pantufa_coffee:853048446981111828>" | ||
), | ||
LorittaReply( | ||
"Você pode votar todos os dias para nos ajudar a crescer o SparklyPower cada vez mais!", | ||
mentionUser = false | ||
), | ||
LorittaReply( | ||
"E, é claro, você vai receber alguns brindes em troca! 1 mapa, 1 diamante, 1 caixa secreta e 7 pesadelos.", | ||
mentionUser = false | ||
) | ||
), | ||
LorittaReply( | ||
"Você pode votar todos os dias para nos ajudar a crescer o SparklyPower cada vez mais!", | ||
mentionUser = false | ||
), | ||
LorittaReply( | ||
"E, é claro, você vai receber alguns brindes em troca! 1 mapa, 1 diamante, 1 caixa secreta e 7 pesadelos.", | ||
mentionUser = false | ||
) | ||
true | ||
) | ||
} |
34 changes: 19 additions & 15 deletions
34
...et/perfectdreams/loritta/helper/serverresponses/sparklypower/ServerInformationResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
package net.perfectdreams.loritta.helper.serverresponses.sparklypower | ||
|
||
import net.perfectdreams.loritta.api.messages.LorittaReply | ||
import net.perfectdreams.loritta.helper.serverresponses.AutomatedSupportResponse | ||
import net.perfectdreams.loritta.helper.serverresponses.QuickAnswerResponse | ||
|
||
class ServerInformationResponse : QuickAnswerResponse() { | ||
override fun getResponse(message: String) = | ||
listOf( | ||
LorittaReply( | ||
"SparklyPower é o servidor de Minecraft Survival da Loritta & Pantufa! **IP:** `mc.sparklypower.net`", | ||
"<:pantufa_hi:997662575779139615>" | ||
override fun getSupportResponse(message: String) = | ||
AutomatedSupportResponse( | ||
listOf( | ||
LorittaReply( | ||
"SparklyPower é o servidor de Minecraft Survival da Loritta & Pantufa! **IP:** `mc.sparklypower.net`", | ||
"<:pantufa_hi:997662575779139615>" | ||
), | ||
LorittaReply( | ||
"**No computador:** Versões de *1.16* a *1.19*;", | ||
"<a:wumpus_keyboard:682249824133054529>", | ||
mentionUser = false | ||
), | ||
LorittaReply( | ||
"**No celular:** Versão *1.19.0* (sempre a versão mais recente disponível, sem ser beta), **porta:** (padrão)", | ||
"<a:wumpus_keyboard:682249824133054529>", | ||
mentionUser = false | ||
) | ||
), | ||
LorittaReply( | ||
"**No computador:** Versões de *1.16* a *1.19*;", | ||
"<a:wumpus_keyboard:682249824133054529>", | ||
mentionUser = false | ||
), | ||
LorittaReply( | ||
"**No celular:** Versão *1.19.0* (sempre a versão mais recente disponível, sem ser beta), **porta:** (padrão)", | ||
"<a:wumpus_keyboard:682249824133054529>", | ||
mentionUser = false | ||
) | ||
true | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.