Added actual call to the persistence layer.
This commit is contained in:
parent
8ce038dbdd
commit
e5504ca6e7
1 changed files with 2 additions and 2 deletions
|
@ -40,8 +40,8 @@ public class Geiserbot {
|
|||
//private List<String> commands;
|
||||
private Map<Long, Chat> chats;
|
||||
|
||||
public Geiserbot() {
|
||||
chats = new HashMap<Long, Chat>();
|
||||
public Geiserbot() throws ReadErrorListException, ReadErrorChatException {
|
||||
chats = Persistence.getInstance().readChats();
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
|
|
Reference in a new issue