summaryrefslogtreecommitdiff
path: root/src/main/java/de/romjaki/privateroombot/Config.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/romjaki/privateroombot/Config.java')
-rw-r--r--src/main/java/de/romjaki/privateroombot/Config.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/de/romjaki/privateroombot/Config.java b/src/main/java/de/romjaki/privateroombot/Config.java
new file mode 100644
index 0000000..738070b
--- /dev/null
+++ b/src/main/java/de/romjaki/privateroombot/Config.java
@@ -0,0 +1,22 @@
+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;
+}