Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (i == 90) {
- infoFilm = Main.DBHandler.getMoviebyID(infoFilmID);
- if (t.contains("Schauspieler") || t.contains("Actor") || t.contains("cast") || t.contains("schauspieler")) {
- String f = infoFilm.getCast().toString();
- f = f.replace("]", "");
- f = f.replace("[", "");
- for (int l = 0; l < 10; l++) {
- f = f.replace(Integer.toString(l), "");
- }
- Chat.i = Chat.i - 1; //return increases it to 8, which is "show me more results"
- return " Hier ist eine Liste aller Schauspieler: "+ f ;
- } else if (t.contains("review") || t.contains("Rezension") || t.contains("meinung") || t.contains("rezension")) {
- String f = "";
- try{ f = infoFilm.getReviews().get(0).getContent();
- f = f.replaceAll("\\\\\\\\n", "");
- f = f.replace("*", "");
- }
- catch(Exception e){
- Chat.i = Chat.i - 1;
- return " Leiden wurden für " + infoFilm.getOriginalTitle() + " noch keine Rezensionen verfasst";
- }
- Chat.i = Chat.i - 1; //return increases it to 8, which is "show me more results"
- return "Das ist die Meinung eines Zuschauers zu "+ infoFilm.getOriginalTitle() + ": \n" + f;
- } else if (t.contains("rating") || t.contains("ranking") || t.contains("bewertung") || t.contains("wertung")) {
- float f = infoFilm.getVoteAverage();
- Chat.i = Chat.i - 1; //return increases it to 8, which is "show me more results"
- return infoFilm.getOriginalTitle() + " wurde bewertet mit: " +f;
- } else if (t.contains("runtime") || t.contains("laufzeit") || t.contains("länge") || t.contains("laenge")) {
- float f = infoFilm.getRuntime();
- Chat.i = Chat.i - 1; //return increases it to 8, which is "show me more results"
- return infoFilm.getOriginalTitle() + " ist " + f +" Minuten lang.";
- } else if (t.contains("alter") || t.contains("usk") || t.contains("freigabe") || t.contains("18")) {
- boolean f = infoFilm.isAdult();
- String k = "";
- if (f) {
- k = "Dieser Film ist erst ab 18 Jahren freigegeben!";
- } else {
- k = "Dieser Film ist unter 18 Jahren freigegeben.";
- }
- Chat.i = Chat.i - 1; //return increases it to 8, which is "show me more results"
- return k ;
- }
- else if (t.contains("danke") || t.contains("ok") || t.contains("super") || t.contains("fertig")) {
- Chat.i=499;
- return "Gerne geschehen";
- }
- else {
- Chat.i = Chat.i - 1;
- return "Dazu habe ich leider keine Informationen";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement