mehrsprachig zwichenstand
This commit is contained in:
@ -11,6 +11,8 @@ import org.json.JSONObject;
|
||||
import java.awt.*;
|
||||
|
||||
import java.security.SecureRandom;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Random;
|
||||
import java.util.concurrent.ThreadLocalRandom;
|
||||
|
||||
@ -20,6 +22,10 @@ public class dice extends ListenerAdapter {
|
||||
private String prefixZitat;
|
||||
private String prefixTest;
|
||||
|
||||
private language langDe = new language("de");
|
||||
private language langEn = new language("en");
|
||||
|
||||
Map<String, String> channelList = new HashMap<String, String>();
|
||||
|
||||
|
||||
public dice() {
|
||||
@ -34,6 +40,9 @@ public class dice extends ListenerAdapter {
|
||||
return;
|
||||
}
|
||||
|
||||
if(!channelList.containsKey(event.getChannel().getId())) {
|
||||
channelList.put(event.getChannel().getId(), "de");
|
||||
}
|
||||
User author = event.getAuthor();
|
||||
if (!author.isBot()) {
|
||||
if (event.getMessage().getContentRaw().startsWith(this.prefixSr))
|
||||
|
||||
Reference in New Issue
Block a user