Make minor changes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bea 2022-08-25 22:59:47 +02:00
parent 1869ae3887
commit 7bbb22535a
2 changed files with 5 additions and 6 deletions

View File

@ -12,5 +12,5 @@ Where `HidekoBot.jar` is the executable archive and `botToken` is your bot token
## Initial setup ## Initial setup
After starting the bot up successfully, it will print an invite-link in your console. Click on the link to add your bot After successfully starting the bot up, it will print an invite-link in your console. Click on the link to add your bot
to any server with the correct permissions already set-up. to any server with the correct permissions already set-up.

View File

@ -9,12 +9,14 @@ import javax.security.auth.login.LoginException;
public class HidekoBot public class HidekoBot
{ {
private static Logger logger = new Logger(HidekoBot.class);
private static String botToken; private static String botToken;
private static String standardInviteLink = "https://discord.com/oauth2/authorize?client_id=%userid%&scope=bot&permissions=8"; private static String standardInviteLink = "https://discord.com/oauth2/authorize?client_id=%userid%&scope=bot&permissions=8";
private static String botUserId; private static String botUserId;
private static final String version = "0.0.1"; // we should probably find a way to make this consistent with Maven
private static final String version = "0.0.1";
// create a logger instance for ease of use
private static final Logger logger = new Logger(HidekoBot.class);
public static void main(String[] args) public static void main(String[] args)
{ {
@ -53,9 +55,6 @@ public class HidekoBot
// log the invite-link to console so noob users can just click on it. // log the invite-link to console so noob users can just click on it.
logger.log("Bot User ID: " + botUserId, 5); logger.log("Bot User ID: " + botUserId, 5);
logger.log("Invite Link: " + standardInviteLink, 5); logger.log("Invite Link: " + standardInviteLink, 5);
} }
} }