PasteSite is open to the public, but with limited features. Register to be able to modify access rights, track your pastes and more...
If you prefer reading light text on a dark background to dark text on a light background, then you might want to try the dark theme.
"Re: Re: Re: #9512" by Anonymous [Python]Actions: |
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 |
package com.pie.jotta; import java.util.Properties; import java.io.FileInputStream; import java.io.IOException; public class Constants { public static final Properties prop = new Properties(); public Constants() { try { prop.load(new FileInputStream("./irc.conf")); } catch(IOException ioe) { System.out.println("irc.conf is missing"); System.exit(0); } } public static final String IRC_HOST = prop.getProperty("server"); public static final int IRC_PORT = Integer.parseInt(prop.getProperty("port")); public static final String BOT_NICK = prop.getProperty("nick"); public static final String BOT_CONTROLLER = "Pie`"; } |