commit for merge

milan
Shwoomple 2022-02-20 23:59:54 +05:30
parent 92f66779c1
commit bd9eae58cd
2 changed files with 17 additions and 2 deletions

View File

@ -32,6 +32,7 @@ public class Main {
}
//Deploy check thread
public static class CheckDeploy extends Thread {
private int interval;
private String id;

View File

@ -2,6 +2,7 @@ package linux.general.hackyquizbot;
import org.javacord.api.DiscordApi;
import org.javacord.api.entity.user.User;
import org.javacord.api.entity.message.embed.EmbedBuilder;
public class Member {
private DiscordApi api;
@ -14,10 +15,23 @@ public class Member {
if(event.getMessageContent().equalsIgnoreCase("!trivia")) {
if(event.getMessageAuthor().asUser().isPresent()) {
this.user = event.getMessageAuthor().asUser().get();
this.user.sendMessage("Welcome to hell");
this.user.sendMessage("Hi! I'm Hacky! **Fuck you**! :D");
}
}
});
}
public void sendMessage(String question, String[] options) {
String desc = new String();
for(String option: options) {
desc += option + "\n";
}
EmbedBuilder embed = new EmbedBuilder()
.setTitle(question)
.setDescription(desc);
this.user.sendMessage(embed);
}
}