add Config Wrapper for .env

This commit is contained in:
tueem 2024-10-10 21:18:29 +02:00
parent 942719d19c
commit 373a6b4279

@ -0,0 +1,20 @@
package net.tomatentum.tomatenmusic3;
import io.github.cdimascio.dotenv.Dotenv;
public class Config {
private Dotenv env;
public Config(Dotenv env) {
this.env = env;
}
public String token() {
return env.get("TOKEN");
}
public boolean isDevelopment() {
return env.get("ENVIRONMENT").equals("Development");
}
}