package ircbot;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class API {

    public static String getAuthPass() throws IOException {
        File file = new File("credentials.properties");
        FileInputStream fileInput = new FileInputStream(file);
        Properties properties = new Properties();
        properties.load(fileInput);
        fileInput.close();
        return properties.getProperty("pass");
    }

    public static String getUsername() throws IOException {
        File file = new File("credentials.properties");
        FileInputStream fileInput = new FileInputStream(file);
        Properties properties = new Properties();
        properties.load(fileInput);
        fileInput.close();
        return properties.getProperty("username");
    }

}

@@ -141,16 +141,171 @@
  API %7B%0A%0A
+    /**%0A     * Get the username of the client specified in the %3Ci%3Ecredentials.properties%3Ci%3E%0A     * @return IRC username%0A     * @throws IOException%0A     */%0A
     publ
@@ -328,16 +328,16 @@
  get
-AuthPass
+Username
 () t
@@ -631,12 +631,16 @@
 ty(%22
-pass
+username
 %22);%0A
@@ -646,16 +646,171 @@
 %0A    %7D%0A%0A
+    /**%0A     * Get the NickServ password specified in the %3Ci%3Ecredentials.properties%3Ci%3E%0A     * @return NickServ password%0A     * @throws IOException%0A     */%0A
     publ
@@ -825,32 +825,32 @@
 c String get
-Username
+AuthPass
 () throws IO
@@ -1128,32 +1128,28 @@
 etProperty(%22
-username
+pass
 %22);%0A    %7D%0A%0A%7D
@@ -1146,11 +1146,10 @@
 ;%0A    %7D%0A
-%0A
 %7D%0A

Document API class