= Localized beans, help, help builder, info, invite
help builder localization currently will collapse for header titles. This isn't too big of a deal, but the word for 'commands' at least can be localized.
This commit is contained in:
+40
-17
@@ -1,25 +1,26 @@
|
|||||||
[CommandEightBall]
|
[CommandEightBall]
|
||||||
It is certain. =
|
It is certain. =
|
||||||
Ask again later. =
|
Ask again later. =
|
||||||
Cannot predict now. =
|
|
||||||
My sources say no. =
|
My sources say no. =
|
||||||
You may rely on it. =
|
You may rely on it. =
|
||||||
Concentrate and ask again. =
|
Concentrate and ask again. =
|
||||||
|
Answers a yes or no question! Warning = Kitty can not actually tell the future, she claims no responsibility for any lion mauling, lack of lottery wins, or felony charges. =
|
||||||
|
Without a doubt. =
|
||||||
|
It is decidedly so. =
|
||||||
|
My reply is no. =
|
||||||
|
As I see it, yes. =
|
||||||
|
Outlook good. =
|
||||||
|
Outlook not so good. =
|
||||||
|
Cannot predict now. =
|
||||||
Signs point to yes. =
|
Signs point to yes. =
|
||||||
Most likely. =
|
Most likely. =
|
||||||
Reply hazy, try again. =
|
Reply hazy, try again. =
|
||||||
Without a doubt. =
|
|
||||||
Very doubtful. =
|
Very doubtful. =
|
||||||
It is decidedly so. =
|
|
||||||
Answers a yes or no question! Warning: Kitty can not actually tell the future, she claims no responsibility for any lion mauling, lack of lottery wins, or felony charges. =
|
Answers a yes or no question! Warning: Kitty can not actually tell the future, she claims no responsibility for any lion mauling, lack of lottery wins, or felony charges. =
|
||||||
Don't count on it. =
|
Don't count on it. =
|
||||||
Yes. =
|
Yes. =
|
||||||
My reply is no. =
|
|
||||||
Yes - definitely. =
|
Yes - definitely. =
|
||||||
As I see it, yes. =
|
|
||||||
Better not tell you now. =
|
Better not tell you now. =
|
||||||
Outlook good. =
|
|
||||||
Outlook not so good. =
|
|
||||||
|
|
||||||
[CommandColiru]
|
[CommandColiru]
|
||||||
Will try to compile any c++ code you put in! Supports up to C++14 standard, uses g++. =
|
Will try to compile any c++ code you put in! Supports up to C++14 standard, uses g++. =
|
||||||
@@ -31,29 +32,51 @@ You have %s beans! =
|
|||||||
[CommandBetBeans]
|
[CommandBetBeans]
|
||||||
Please bet with at least 50 beans! =
|
Please bet with at least 50 beans! =
|
||||||
That's not a valid bet! =
|
That's not a valid bet! =
|
||||||
|
You won %s beans! =
|
||||||
Sorry, you didn't win, try again! =
|
Sorry, you didn't win, try again! =
|
||||||
Allows you to bet your beans, set your amount after the command! Warning! House always wins!\nSets of 3 will get 5x, 4 will get 10x, and 5 will get 1000x =
|
Allows you to bet your beans, set your amount after the command! Warning! House always wins!\nSets of 3 will get 5x, 4 will get 10x, and 5 will get 1000x =
|
||||||
You don't have enough beans! =
|
You don't have enough beans! =
|
||||||
You won %s beans! =
|
|
||||||
|
|
||||||
[CommandChangeIndicator]
|
[CommandChangeIndicator]
|
||||||
Indicator changed to `%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! =
|
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` =
|
||||||
|
|
||||||
|
[CommandHelpBuilder]
|
||||||
|
commands =
|
||||||
|
Emit help for all commands as formatted HTML =
|
||||||
|
|
||||||
|
[CommandDoWork]
|
||||||
|
I finished with my work! = D =
|
||||||
|
I finished with my work! :D =
|
||||||
|
Occupies a core for a few seconds =
|
||||||
|
|
||||||
[CommandBoop]
|
[CommandBoop]
|
||||||
Kitty will react with a counter =
|
|
||||||
%s booped %s! =
|
%s booped %s! =
|
||||||
Woah! %s booped me! That's %s total! =
|
Woah! %s booped me! That's %s total! =
|
||||||
|
Kitty will react with a counter =
|
||||||
%s booped several others - %s! =
|
%s booped several others - %s! =
|
||||||
|
|
||||||
|
[CommandInvite]
|
||||||
|
Provies a direct invite link for KittyBot =
|
||||||
|
|
||||||
|
[CommandInfo]
|
||||||
|
I'm made by `Rin#8904` and `Reverie Wisp#3703`!\nYou can find more info about me along with a Patreon link to support us and GitHub link for filing bugs https://www.rinsnowmew.com/bot/ =
|
||||||
|
Provides author info and a link to Kitty's website =
|
||||||
|
|
||||||
|
[CommandBlurry]
|
||||||
|
Blurs your icon or the icon of a friend you mentioned =
|
||||||
|
|
||||||
|
[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. =
|
||||||
|
|
||||||
|
[CommandGiveBeans]
|
||||||
|
That's not a valid number! =
|
||||||
|
Gave %s %s beans! =
|
||||||
|
Gives beans to the mentioned users! =
|
||||||
|
You didn't mention anyone! =
|
||||||
|
|
||||||
[CommandChoose]
|
[CommandChoose]
|
||||||
With an input of x,y,z where x y and z are all choices, kitty will choose one =
|
With an input of x,y,z where x y and z are all choices, kitty will choose one =
|
||||||
I chooooooose %s! =
|
I chooooooose %s! =
|
||||||
|
|
||||||
[CommandDoWork]
|
|
||||||
I finished with my work! :D =
|
|
||||||
Occupies a core for a few seconds =
|
|
||||||
|
|
||||||
[CommandBlurry]
|
|
||||||
Blurs your icon or the icon of a friend you mentioned =
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package commands;
|
package commands;
|
||||||
|
|
||||||
import core.Command;
|
import core.Command;
|
||||||
|
import core.Localizer;
|
||||||
import dataStructures.*;
|
import dataStructures.*;
|
||||||
|
|
||||||
public class CommandGiveBeans extends Command
|
public class CommandGiveBeans extends Command
|
||||||
@@ -8,7 +9,7 @@ public class CommandGiveBeans extends Command
|
|||||||
public CommandGiveBeans (KittyRole level, KittyRating rating) { super(level, rating); }
|
public CommandGiveBeans (KittyRole level, KittyRating rating) { super(level, rating); }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String HelpText() { return "Gives beans to the mentioned users!"; }
|
public String HelpText() { return Localizer.Stub("Gives beans to the mentioned users!"); }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||||
@@ -19,20 +20,20 @@ public class CommandGiveBeans extends Command
|
|||||||
}
|
}
|
||||||
catch (NumberFormatException e)
|
catch (NumberFormatException e)
|
||||||
{
|
{
|
||||||
res.Call("That's not a valid number!");
|
res.Call(Localizer.Stub("That's not a valid number!"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(input.mentions == null)
|
if(input.mentions == null)
|
||||||
{
|
{
|
||||||
res.Call("You didn't mention anyone!");
|
res.Call(Localizer.Stub("You didn't mention anyone!"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int i = 0; i < input.mentions.length; i++)
|
for(int i = 0; i < input.mentions.length; i++)
|
||||||
{
|
{
|
||||||
input.mentions[i].ChangeBeans(beans);
|
input.mentions[i].ChangeBeans(beans);
|
||||||
res.Call("Gave " + input.mentions[i].name + " " + beans + " beans!");
|
res.Call(String.format(Localizer.Stub("Gave %s %s beans!"), input.mentions[i].name, "" + beans));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ public class CommandHelp extends Command
|
|||||||
public CommandHelp(KittyRole level, KittyRating rating) { super(level, rating); }
|
public CommandHelp(KittyRole level, KittyRating rating) { super(level, rating); }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String HelpText() { return "Lets you look up specific commands, or get a link to a list of all commands."; }
|
public String HelpText() { return Localizer.Stub("Lets you look up specific commands, or get a link to a list of all commands."); }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||||
@@ -25,11 +25,7 @@ public class CommandHelp extends Command
|
|||||||
|
|
||||||
if(help == null)
|
if(help == null)
|
||||||
{
|
{
|
||||||
help = "You can get help with a specific command by typing `!help command`!"
|
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`");
|
||||||
+ "\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`";
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
import core.Command;
|
import core.Command;
|
||||||
|
import core.Localizer;
|
||||||
import core.Stats;
|
import core.Stats;
|
||||||
import dataStructures.KittyChannel;
|
import dataStructures.KittyChannel;
|
||||||
import dataStructures.KittyGuild;
|
import dataStructures.KittyGuild;
|
||||||
@@ -25,7 +26,7 @@ public class CommandHelpBuilder extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String HelpText() { return "Emit help for all commands as formatted HTML"; }
|
public String HelpText() { return Localizer.Stub("Emit help for all commands as formatted HTML"); }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||||
@@ -95,7 +96,7 @@ public class CommandHelpBuilder extends Command {
|
|||||||
roleStr = roleStr.substring(0, 1).toUpperCase() + roleStr.toLowerCase().substring(1);
|
roleStr = roleStr.substring(0, 1).toUpperCase() + roleStr.toLowerCase().substring(1);
|
||||||
|
|
||||||
// Section header
|
// Section header
|
||||||
accumulated += headerStart + roleStr + " commands" + headerEnd;
|
accumulated += headerStart + roleStr + " " + Localizer.Stub("commands") + headerEnd;
|
||||||
accumulated += sectionStart;
|
accumulated += sectionStart;
|
||||||
|
|
||||||
// Section content
|
// Section content
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package commands;
|
package commands;
|
||||||
|
|
||||||
import core.Command;
|
import core.Command;
|
||||||
|
import core.Localizer;
|
||||||
import dataStructures.KittyChannel;
|
import dataStructures.KittyChannel;
|
||||||
import dataStructures.KittyGuild;
|
import dataStructures.KittyGuild;
|
||||||
import dataStructures.KittyRating;
|
import dataStructures.KittyRating;
|
||||||
@@ -14,13 +15,12 @@ public class CommandInfo extends Command
|
|||||||
public CommandInfo(KittyRole level, KittyRating rating) { super(level, rating); }
|
public CommandInfo(KittyRole level, KittyRating rating) { super(level, rating); }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String HelpText() { return "Provides author info and a link to Kitty's website"; }
|
public String HelpText() { return Localizer.Stub("Provides author info and a link to Kitty's website"); }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||||
{
|
{
|
||||||
String info = "I'm made by `Rin#8904` and `Reverie Wisp#3703`!\n"
|
String info = Localizer.Stub("I'm made by `Rin#8904` and `Reverie Wisp#3703`!\nYou can find more info about me along with a Patreon link to support us and GitHub link for filing bugs https://www.rinsnowmew.com/bot/");
|
||||||
+ "You can find more info about me along with a Patreon link to support us and GitHub link for filing bugs https://www.rinsnowmew.com/bot/" ;
|
|
||||||
res.Call(info);
|
res.Call(info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
package commands;
|
package commands;
|
||||||
|
|
||||||
import core.Command;
|
import core.Command;
|
||||||
|
import core.Localizer;
|
||||||
import dataStructures.*;
|
import dataStructures.*;
|
||||||
import offline.Ref;
|
import offline.Ref;
|
||||||
|
|
||||||
@@ -9,7 +10,7 @@ public class CommandInvite extends Command
|
|||||||
public CommandInvite(KittyRole level, KittyRating rating) { super(level, rating); }
|
public CommandInvite(KittyRole level, KittyRating rating) { super(level, rating); }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String HelpText() { return "Provies a direct invite link for KittyBot"; }
|
public String HelpText() { return Localizer.Stub("Provies a direct invite link for KittyBot"); }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||||
|
|||||||
Reference in New Issue
Block a user