= Localization and edge-case updating for stub

This commit is contained in:
Matthew Cech
2019-04-12 21:42:18 -07:00
parent a2de367896
commit bc670c4811
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -6,8 +6,8 @@ You have %s beans!=
Displays how many beans you have=
[CommandHelp]
You can get help with a specific command by typing `!help command`!\nYou can also look at <https://www.rinsnowmew.com/bot/info/#commands>\nGeneral Commands: `boop, roll, choose, help, info, vote, results, showpoll, wolfram, cplus, java, beans, role, bet, yeet`=
Lets you look up specific commands, or get a link to a list of all commands.=
You can get help with a specific command by typing `!help command`!\nGeneral Commands: `boop, roll, choose, help, info, vote, results, showpoll, wolfram, cplus, java, beans, role, bet, yeet`=
[CommandRoll]
Didn't work ;3;=
+1 -1
View File
@@ -25,7 +25,7 @@ public class CommandHelp extends Command
if(help == null)
{
help = Localizer.Stub("You can get help with a specific command by typing `!help command`!\nYou can also look at <https://www.rinsnowmew.com/bot/info/#commands>\nGeneral Commands: `boop, roll, choose, help, info, vote, results, showpoll, wolfram, cplus, java, beans, role, bet, yeet`");
help = Localizer.Stub("You can get help with a specific command by typing `!help command`!\nGeneral Commands: `boop, roll, choose, help, info, vote, results, showpoll, wolfram, cplus, java, beans, role, bet, yeet`");
}
else
{
+1 -1
View File
@@ -91,7 +91,7 @@ public class Localizer
return input;
String value = stringStore.GetKey(input);
if(value.length() < 1)
if(value == null || value.length() < 1)
return input;
return value;