blob: 46bf476ca26eb8a912bb1d0065c1fcfa0db6e8de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package com.mavlonerkinboev.animarfo;
import com.mavlonerkinboev.animarfo.telegram.bot.Bot;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
public class App {
public final static Properties PROPERTIES = loadProperties(new File("src/main/resources/app.properties"));
public static void main(String[] args) {
Bot.start();
}
public static Properties loadProperties(File file) {
Properties properties = new Properties();
try (FileInputStream fis = new FileInputStream(file)) {
properties.load(fis);
} catch (IOException e) {
e.printStackTrace();
}
return properties;
}
}
|