summaryrefslogtreecommitdiff
path: root/src/main/java/de/romjaki/privateroombot/Config.java
blob: f27474d862c77a38f2b67456d27e2631f1b71839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package de.romjaki.privateroombot;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;

public class Config {

    public static Config CONFIG;

    static {
        try {
            CONFIG = Main.gson.fromJson(new FileReader(new File("config.json")), Config.class);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }

    String token;
    String from_channel_id;
    String category_id;
    String format = "privat - %s";
}