Browse code

fix sara call

devnewton authored on 09/06/2017 17:28:25
Showing 3 changed files
... ...
@@ -56,7 +56,7 @@ public class Sara {
56 56
 
57 57
     private boolean isBotCall(Post post) {
58 58
         String message = post.getMessage();
59
-        return message.contains("/" + NAME) || message.contains(NAME + "<");
59
+        return message.contains("/" + NAME) || message.contains(NAME + "<") || message.contains(NAME + "&lt;");
60 60
     }
61 61
 
62 62
 }
... ...
@@ -2,9 +2,7 @@ package im.bci.sara;
2 2
 
3 3
 import org.apache.commons.lang3.StringUtils;
4 4
 import org.springframework.beans.factory.annotation.Autowired;
5
-import org.springframework.stereotype.Controller;
6 5
 import org.springframework.web.bind.annotation.RequestMapping;
7
-import org.springframework.web.bind.annotation.RequestMethod;
8 6
 import org.springframework.web.bind.annotation.ResponseBody;
9 7
 import org.springframework.web.bind.annotation.RestController;
10 8
 
... ...
@@ -3,6 +3,7 @@ spring.http.encoding.enabled=true
3 3
 spring.http.encoding.force=true
4 4
 
5 5
 server.tomcat.uri-encoding=UTF-8
6
+server.port=36152
6 7
 
7 8
 logging.level.root=WARN
8 9
 logging.level.org.springframework.web=WARN
9 10
\ No newline at end of file