= Localized past testing files for indicator, choose, coliru, 8ball
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package commands;
|
||||
|
||||
import core.Command;
|
||||
import core.Localizer;
|
||||
import dataStructures.*;
|
||||
|
||||
public class CommandChangeIndicator extends Command
|
||||
@@ -8,7 +9,7 @@ public class CommandChangeIndicator extends Command
|
||||
public CommandChangeIndicator(KittyRole level, KittyRating rating) { super(level, rating); }
|
||||
|
||||
@Override
|
||||
public String HelpText() { return "Changes the command indicator to any single character. By default, it's '!'. If more than one character is provided, the first one is used!"; }
|
||||
public String HelpText() { return Localizer.Stub("Changes the command indicator to any single character. By default, it's '!'. If more than one character is provided, the first one is used!"); }
|
||||
|
||||
@Override
|
||||
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||
@@ -21,6 +22,6 @@ public class CommandChangeIndicator extends Command
|
||||
}
|
||||
|
||||
guild.SetCommandIndicator(arg.substring(0, 1));
|
||||
res.Call("Indicator changed to `" + guild.GetCommandIndicator() +"`!");
|
||||
res.Call(String.format(Localizer.Stub("Indicator changed to `%s`"), guild.GetCommandIndicator()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ public class CommandChoose extends Command
|
||||
public CommandChoose(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)
|
||||
@@ -26,6 +26,6 @@ public class CommandChoose extends Command
|
||||
return;
|
||||
}
|
||||
|
||||
res.Call("I chooooooose" + choices[(int) (Math.random()*choices.length)] + "!");
|
||||
res.Call(String.format(Localizer.Stub("I chooooooose %s!"), (choices[(int) (Math.random()*choices.length)]).toString()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package commands;
|
||||
|
||||
import core.Command;
|
||||
import core.Localizer;
|
||||
import dataStructures.*;
|
||||
import network.NetworkColiru;
|
||||
|
||||
@@ -11,7 +12,7 @@ public class CommandColiru extends Command
|
||||
public CommandColiru(KittyRole level, KittyRating rating) { super(level, rating);}
|
||||
|
||||
@Override
|
||||
public String HelpText() { return "Will try to compile any c++ code you put in! Supports up to C++14 standard, uses g++."; }
|
||||
public String HelpText() { return Localizer.Stub("Will try to compile any c++ code you put in! Supports up to C++14 standard, uses g++."); }
|
||||
|
||||
@Override
|
||||
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||
|
||||
@@ -15,7 +15,7 @@ public class CommandDoWork extends Command
|
||||
public CommandDoWork(KittyRole level, KittyRating rating) { super(level, rating); }
|
||||
|
||||
@Override
|
||||
public String HelpText() { return "Occupies a core for a few seconds"; }
|
||||
public String HelpText() { return Localizer.Stub("Occupies a core for a few seconds"); }
|
||||
|
||||
// Called when the command is run!
|
||||
@Override
|
||||
@@ -28,6 +28,6 @@ public class CommandDoWork extends Command
|
||||
thispieceofshit += Math.log((double)i);
|
||||
}
|
||||
|
||||
res.Call("I finished with my work! :D");
|
||||
res.Call(Localizer.Stub("I finished with my work! :D"));
|
||||
}
|
||||
}
|
||||
@@ -1,21 +1,41 @@
|
||||
package commands;
|
||||
|
||||
import core.Command;
|
||||
import core.Localizer;
|
||||
import dataStructures.*;
|
||||
|
||||
public class CommandEightBall extends Command
|
||||
{
|
||||
String [] answers = {"It is certain.", "It is decidedly so.", "Without a doubt.", "Yes - definitely.", "You may rely on it.", "As I see it, yes.", "Most likely.",
|
||||
"Outlook good.", "Yes.", "Signs point to yes.", "Reply hazy, try again.", "Ask again later.", "Better not tell you now.", "Cannot predict now.",
|
||||
"Concentrate and ask again.", "Don't count on it.", "My reply is no.", "My sources say no.", "Outlook not so good.", "Very doubtful."};
|
||||
public CommandEightBall(KittyRole level, KittyRating rating)
|
||||
String [] answers =
|
||||
{
|
||||
super(level, rating);
|
||||
}
|
||||
Localizer.Stub("It is certain.")
|
||||
, Localizer.Stub("It is decidedly so.")
|
||||
, Localizer.Stub("Without a doubt.")
|
||||
, Localizer.Stub("Yes - definitely.")
|
||||
, Localizer.Stub("You may rely on it.")
|
||||
, Localizer.Stub("As I see it, yes.")
|
||||
, Localizer.Stub("Most likely.")
|
||||
, Localizer.Stub("Outlook good.")
|
||||
, Localizer.Stub("Yes.")
|
||||
, Localizer.Stub("Signs point to yes.")
|
||||
|
||||
, Localizer.Stub("Reply hazy, try again.")
|
||||
, Localizer.Stub("Ask again later.")
|
||||
, Localizer.Stub("Better not tell you now.")
|
||||
, Localizer.Stub("Cannot predict now.")
|
||||
, Localizer.Stub("Concentrate and ask again.")
|
||||
|
||||
, Localizer.Stub("Don't count on it.")
|
||||
, Localizer.Stub("My reply is no.")
|
||||
, Localizer.Stub("My sources say no.")
|
||||
, Localizer.Stub("Outlook not so good.")
|
||||
, Localizer.Stub("Very doubtful.")
|
||||
};
|
||||
|
||||
public CommandEightBall(KittyRole level, KittyRating rating) { super(level, rating); }
|
||||
|
||||
@Override
|
||||
public String HelpText() { return "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."; }
|
||||
public String HelpText() { return Localizer.Stub("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."); }
|
||||
|
||||
@Override
|
||||
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||
|
||||
Reference in New Issue
Block a user