diff --git a/localization.config b/localization.config index a6b2dea..b52e3e6 100644 --- a/localization.config +++ b/localization.config @@ -61,6 +61,12 @@ Changed %s to role `%s`! = Changes the command indicator to any single character. By default, it's '!'. If more than one character is provided, the first one is used! = Indicator changed to `%s` = +[CommandTweet] +FUCKED UP HARD = + +[CommandStats] +Displays the actively running KittyBot application information = + [CommandMap] Invalid arguments provided! = Using mapgen v0.1 = @@ -131,16 +137,27 @@ Gives beans to the mentioned users! = You didn't mention anyone! = Gave %s %s beans! = +[CommandWolfram] +Will query wolframalpha with your question and give a full image output of the answer = +Something went wrong! = +You need to provide some arguments! = + [CommandRPG] Admin+ command only right now - experimental text RPG! Format is !rpg = Invalid RPG Command! = +[CommandYeet] +Yeet yourself or yeet a friend with @! = + [CommandPollManage] 'start' will start a new poll with the query of the line you put after, 'choice' will add a choice to the poll, 'stop' will end the poll = [CommandRPStart] Starts an rp, add people to it by mentioning them! = +[CommandStark] +Snaps your icon or the icon of a friend you mentioned = + [CommandJDoodle] Will compile any java code you put in! Supports Java 1.8 = diff --git a/src/commands/CommandStark.java b/src/commands/CommandStark.java index d27fa04..3507c3d 100644 --- a/src/commands/CommandStark.java +++ b/src/commands/CommandStark.java @@ -8,6 +8,7 @@ import java.io.IOException; import javax.imageio.ImageIO; import core.Command; +import core.Localizer; import dataStructures.*; import utils.ImageUtils; @@ -16,7 +17,7 @@ public class CommandStark extends Command public CommandStark(KittyRole level, KittyRating rating) { super(level, rating); } @Override - public String HelpText() { return "Snaps your icon or the icon of a friend you mentioned"; }; + public String HelpText() { return Localizer.Stub("Snaps your icon or the icon of a friend you mentioned"); }; private static Long num = 0l; diff --git a/src/commands/CommandStats.java b/src/commands/CommandStats.java index fe865a3..fad2086 100644 --- a/src/commands/CommandStats.java +++ b/src/commands/CommandStats.java @@ -1,6 +1,7 @@ package commands; import core.Command; +import core.Localizer; import core.CommandManager.ThreadData; import dataStructures.KittyChannel; import dataStructures.KittyGuild; @@ -16,7 +17,7 @@ public class CommandStats extends Command public CommandStats(KittyRole level, KittyRating rating) { super(level, rating); } @Override - public String HelpText() { return "Displays the actively running KittyBot application information"; } + public String HelpText() { return Localizer.Stub("Displays the actively running KittyBot application information"); } // Called when the command is run! @Override diff --git a/src/commands/CommandTweet.java b/src/commands/CommandTweet.java index 947a26d..7538bec 100644 --- a/src/commands/CommandTweet.java +++ b/src/commands/CommandTweet.java @@ -1,6 +1,7 @@ package commands; import core.Command; +import core.Localizer; import dataStructures.*; import network.NetworkTwitter; @@ -10,7 +11,7 @@ public class CommandTweet extends Command public CommandTweet(KittyRole level, KittyRating rating) { super(level, rating); } @Override - public String HelpText() { return "With an input of x,y,z where x y and z are all choices, kitty will choose one"; } + public String HelpText() { return Localizer.Stub("With an input of x,y,z where x y and z are all choices, kitty will choose one"); } @Override public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res) @@ -18,7 +19,7 @@ public class CommandTweet extends Command try { res.Call(tweet.tweet(input.args)); } catch (Exception e) { - res.Call("FUCKED UP HARD"); + res.Call(Localizer.Stub("FUCKED UP HARD")); } } } diff --git a/src/commands/CommandWolfram.java b/src/commands/CommandWolfram.java index 8f48c2e..80d6163 100644 --- a/src/commands/CommandWolfram.java +++ b/src/commands/CommandWolfram.java @@ -3,6 +3,7 @@ package commands; import java.io.File; import java.io.IOException; import core.Command; +import core.Localizer; import dataStructures.*; import network.*; import utils.ImageUtils; @@ -14,13 +15,13 @@ public class CommandWolfram extends Command public CommandWolfram(KittyRole level, KittyRating rating) { super(level, rating);} @Override - public String HelpText() { return "Will query wolframalpha with your question and give a full image output of the answer"; } + public String HelpText() { return Localizer.Stub("Will query wolframalpha with your question and give a full image output of the answer"); } @Override public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res) { if(input.args == null || input.args.trim().length() == 0) - res.Call("You need to provide some arguments!"); + res.Call(Localizer.Stub("You need to provide some arguments!")); try { @@ -30,7 +31,7 @@ public class CommandWolfram extends Command } catch (IOException e) { - res.Call("Something went wrong!"); + res.Call(Localizer.Stub("Something went wrong!")); } } } \ No newline at end of file diff --git a/src/commands/CommandYeet.java b/src/commands/CommandYeet.java index 646771e..7b29add 100644 --- a/src/commands/CommandYeet.java +++ b/src/commands/CommandYeet.java @@ -20,6 +20,7 @@ import javax.imageio.stream.FileImageOutputStream; import javax.imageio.stream.ImageOutputStream; import core.Command; +import core.Localizer; import dataStructures.KittyChannel; import dataStructures.KittyGuild; import dataStructures.KittyRating; @@ -38,7 +39,7 @@ public class CommandYeet extends Command private static Long num = 0l; @Override - public String HelpText() { return "Yeet yourself or yeet a friend with @!"; } + public String HelpText() { return Localizer.Stub("Yeet yourself or yeet a friend with @!"); } // Called when the command is run! @Override