Skip to content

Commit

Permalink
Merge pull request #20 from zugazagoitia/development
Browse files Browse the repository at this point in the history
Mejorar 33
  • Loading branch information
Cadiducho authored Dec 1, 2023
2 parents 4792d2d + cbec8d6 commit 3241157
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rootProject.name = 'Cadibot'
rootProject.name = 'CadiBot'
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public class TreintaYTres implements ZinciteModule {
private final Random rand = new Random();
@Override
public void onPostCommand(Update update, boolean success) {
final String text = update.getMessage().getText();
if ((text.contains("33") || text.length() == 33) && !text.contains("http")) {
final String text = update.getMessage().getText().toLowerCase();
if ((text.contains("33") || text.length() == 33 || text.contains("xxxiii") || text.contains("treintaytres") || text.contains("treinta y tres") || text.contains("treinta y 3")) && !text.contains("http")) {
List<String> respuestas = Respuestas.getInstance().getRespuestas();

String reply = EmojiParser.parseToUnicode(respuestas.get(rand.nextInt(respuestas.size())));
Expand Down

0 comments on commit 3241157

Please sign in to comment.