|
@@ -17,13 +17,14 @@ public class MessageSender implements Runnable{
|
17
|
17
|
for (int i = 2; i < list.size(); i++) {
|
18
|
18
|
sentence += list.get(i) + " ";
|
19
|
19
|
}
|
|
20
|
+
|
20
|
21
|
sentence = sentence.substring(0, sentence.length()-1);
|
21
|
22
|
if (list.get(1).equalsIgnoreCase("group")){
|
22
|
23
|
message = new Message(user.getGithub(), "", sentence);
|
23
|
24
|
} else {
|
24
|
25
|
message = new Message(user.getGithub(), list.get(1), sentence);
|
25
|
26
|
}
|
26
|
|
-
|
|
27
|
+
|
27
|
28
|
String results = webber.send_message(message);
|
28
|
29
|
try {
|
29
|
30
|
Thread.sleep(10000);
|