Generalized Localizer File

This commit is contained in:
Alex Stewart
2019-04-14 00:25:52 -07:00
parent fbd047849c
commit e0c761dfc0
36 changed files with 268 additions and 213 deletions
+146 -104
View File
@@ -1,174 +1,216 @@
[CommandPollManage] [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= PollManageInfo='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
PollMangeInfo=
[CommandBeansShow] [CommandBeansShow]
You have %s beans!= BeansShowDisplay=You have %s beans!
Displays how many beans you have= BeansShowInfo=Displays how many beans you have
[CommandHelp] [CommandHelp]
Lets you look up specific commands, or get a link to a list of all commands.= HelpInfo=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`= HelpDisplay=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] [CommandRoll]
Didn't work ;3;= RollError=Didn't work ;3;
Based on input of xdy where x is number of dice and y is faces kitty will roll that amount of dice, display the individual rolls and total= RollInfo=Based on input of xdy where x is number of dice and y is faces kitty will roll that amount of dice, display the individual rolls and total
[CommandStats] [CommandStats]
Displays the actively running KittyBot application information= StatsInfo=Displays the actively running KittyBot application information
[CommandTweet] [CommandTweet]
With an input of x,y,z where x y and z are all choices, kitty will choose one= TweetInfo=Kitty will tweet to her personal twitter account
Tweet command failed!= TweetError=Tweet command failed!
[CommandRole] [CommandRole]
Please enter `general`, `mod`, or `admin`!= RoleInfo=Will show the current role you have, Admins can change others roles with input of 'role x @y' with x being blacklist, general, mod, or admin. Blacklist will not allow the user to interact with kitty anymore, general mod and admin will give the user access to those commands.
You aren't allowed to do that! You must have the KittyRole '%' or higher!= RoleStandardResponse=Your role is
Will show the current role you have, Admins can change others roles with input of 'role x @y' with x being blacklist, general, mod, or admin. Blacklist will not allow the user to interact with kitty anymore, general mod and admin will give the user access to those commands.= RoleError=You aren't allowed to do that! You must have the KittyRole '%' or higher!
Your role is= RoleChanged=Changed %s to role `%s`!
Changed %s to role `%s`!= RoleNeededRole=Please enter `general`, `mod`, or `admin`!
[CommandColiru] [CommandColiru]
Please provide some c++ code to attempt to compile!= ColiruError=Please provide some c++ code to attempt to compile!
Will try to compile any c++ code you put in! Supports up to C++14 standard, uses g++.= ColiruInfo=Will try to compile any c++ code you put in! Supports up to C++14 standard, uses g++.
[CommandJDoodle] [CommandJDoodle]
Please provide some java code to get it compiled!= JDoodleInfo=Will compile any java code you put in! Supports Java 1.8
Will compile any java code you put in! Supports Java 1.8= JDoodleError=Please provide some java code to get it compiled!
[CommandChangeIndicator] [CommandChangeIndicator]
Changes the command indicator to any single character. By default, it's '!'. If more than one character is provided, the first one is used!= ChangeIndicatorInfo=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`= ChangeIndicatorError=Please specify a letter or symbol to use!
ChangeIndicatorChanged=Indicator changed to `%s`
[CommandPerish] [CommandPerish]
Adds a red, 'a n g e r y' overlay to your icon or the icon of a friend you mentioned= PerishInfo=Adds a red, 'a n g e r y' overlay to your icon or the icon of a friend you mentioned
[CommandStark] [CommandStark]
Snaps your icon or the icon of a friend you mentioned= StarkInfo=Snaps your icon or the icon of a friend you mentioned
[CommandYeet] [CommandYeet]
Yeet yourself or yeet a friend with @!= YeetInfo=Yeet yourself or yeet a friend with @!
[CommandPollVote] [CommandPollVote]
There is no poll running!= PollVoteNotValidNumber=That's not a vaild number!
%s That's not a vaild vote!= PollVoteInfo=Vote in a poll with the choice number, won't work if no poll is running, you can't change your vote once you have cast it! Be careful!
That's not a vaild number!= PollVoteNoPoll=There is no poll running!
Vote in a poll with the choice number, won't work if no poll is running, you can't change your vote once you have cast it! Be careful!= PollVoteAlreadyVoted=You already voted
You already voted!= PollVoteNotValidVote=%s That's not a vaild vote!
You successfully voted for= PollVoteSuccess=You successfully voted for
[CommandShutdown] [CommandShutdown]
Stops kitty. `-s` or `safe` as an argument attempts to sync off the database before shutdown.= ShutdownInfo=Stops kitty. `-s` or `safe` as an argument attempts to sync off the database before shutdown.
[CommandTeey] [CommandTeey]
Teey yourself back into existance, or teey a friend with @!= TeeyInfo=Teey yourself back into existance, or teey a friend with @!
[CommandBetBeans] [CommandBetBeans]
That's not a valid bet!= BetBeansLowBet=Please bet with at least 50 beans!
Please bet with at least 50 beans!= BetBeansInfo=Allows you to bet your beans, set your amount after the command! Warning! House always wins!\nSets of 3 will get 2x, 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= BetBeansNotValid=That's not a valid bet!
Sorry, you didn't win, try again!= BetBeansLose=Sorry, you didn't win, try again!
You don't have enough beans!= BetBeansNotEnough=You don't have enough beans!
You won %s beans!= BetBeansWin=You won %s beans!
[CommandDoWork] [CommandDoWork]
I finished with my work! :D= DoWorkFinished=I finished with my work! :D
Occupies a core for a few seconds= DoWorkInfo=Occupies a core for a few seconds
[CommandRPStart] [CommandRPStart]
Starts an rp, add people to it by mentioning them!= RPStartInfo=Starts an rp, add people to it by mentioning them!
[CommandBlurry] [CommandBlurry]
Blurs your icon or the icon of a friend you mentioned= BlurryInfo=Blurs your icon or the icon of a friend you mentioned
[CommandPollResults] [CommandPollResults]
Will show current results of a poll and percentages of votes per choice= PollResultsResponse=%s people voted for %s `%s` with `%s%` !\n
%s people voted for %s `%s` with `%s%` !\n = PollResultsInfo=Will show current results of a poll and percentages of votes per choice
[CommandRating] [CommandRating]
Kittybot content set to= RatingInfo='0' is fully sfw (Derpi and e621 searches are disabled), '1' is filtered (kitty auto appends a sfw tag on any searches), '2' is nsfw (any search will go through). Some other words are supported for setting filter as well.
Warning: NSFW may slip through, images are only based on tags on their respective sites!= RatingWarning=Warning: NSFW may slip through, images are only based on tags on their respective sites!
Invalid content rating= RatingChanged=Kittybot content set to
RatingInvalid=Invalid content rating
[CommandGiveBeans] [CommandGiveBeans]
That's not a valid number!= GiveBeansNoneMentioned=You didn't mention anyone!
Gave %s %s beans!= GiveBeansSuccess=Gave %s %s beans!
Gives beans to the mentioned users!= GiveBeansInvalid=That's not a valid number!
You didn't mention anyone!= GiveBeansInfo=Gives beans to the mentioned users!
[CommandPollShow] [CommandPollShow]
There is no poll running!= PollShowNoPoll=There is no poll running!
And the choices are:\n= PollShowInfo=Will show the current poll running
Will show the current poll running= PollShowPoll=The current poll is `%s`\n
The current poll is `%s`\n= PollShowChoices=And the choices are:\n
[CommandHelpBuilder] [CommandHelpBuilder]
Emit help for all commands as formatted HTML= HelpBuilderInfo=Emit help for all commands as formatted HTML
commands=
[CommandRPEnd] [CommandRPEnd]
Here's your file!= RPEndError=You can't end this RP!
You can't end this RP!= RPEndInfo=Ends RP in channel and gives you a .txt file!
Ends RP in channel= RPEndFileOut=Here's your file!
[CommandRPG] [CommandRPG]
Invalid RPG Command!= RPGInfo=Admin+ command only right now - experimental text RPG! Format is !rpg <rpg command="">
Admin+ command only right now - experimental text RPG! Format is !rpg <rpg command>= RPGInvalid=Invalid RPG Command!
[CommandBoop] [CommandBoop]
%s booped %s!= BoopPerson=
Kitty will react with a counter= BoopInfo=
Woah! %s booped me! That's %s total!= BoopMultiple=%s booped several others - %s!
%s booped several others - %s!= BoopPerson=%s booped %s!
BoopInfo=Kitty will react with a counter
BoopStandard=Woah! %s booped me! That's %s total!
BoopStandard=
BoopMultiple=
[CommandInfo] [CommandInfo]
I'm a Java application written with JDA! Check out my repo at <https://github.com/AlexStewartCode/KittyBot>= InfoInfo=Provides author info and a link to Kitty's website
Provides some extra info about KittyBot= InfoResponse=
InfoResponse=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/
InfoInfo=
[CommandPing] [CommandPing]
Pong!= PingResponse=Pong!
Will respond with Pong!= PingResponse=
PingInfo=Will respond with Pong!
PingInfo=
[CommandChoose] [CommandChoose]
With an input of x,y,z where x y and z are all choices, kitty will choose one= ChooseChoice=
I chooooooose %s!= ChooseInfo=With an input of x,y,z where x y and z are all choices, kitty will choose one
ChooseOne=I can't choose from *one* thing!
ChooseChoice=I chooooooose %s!
ChooseOne=
ChooseInfo=
[CommandEightBall] [CommandEightBall]
It is certain.= EightBallYes9=Yes.
Ask again later.= EightBallInfo=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.
Cannot predict now.= EightBallYes10=Signs point to yes.
My sources say no.= EightBallError=
You may rely on it.= EightBallNo1=Don't count on it.
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.= EightBallNo2=My reply is no.
Concentrate and ask again.= EightBallNo3=My sources say no.
Signs point to yes.= EightBallNo4=Outlook not so good.
Don't count on it.= EightBallNo5=Very doubtful.
Yes.= EightBallYes9=
Hmm? You'll need to ask a question!= EightBallYes4=
My reply is no.= EightBallYes3=
Most likely.= EightBallYes2=
Reply hazy, try again.= EightBallYes1=
Without a doubt.= EightBallYes8=
Yes - definitely.= EightBallYes7=
Very doubtful.= EightBallError=Hmm? You'll need to ask a question!
As I see it, yes.= EightBallYes6=
Better not tell you now.= EightBallYes5=
Outlook good.= EightBallMaybe1=
Outlook not so good.= EightBallMaybe2=
It is decidedly so.= EightBallMaybe3=
EightBallMaybe4=
EightBallMaybe5=
EightBallInfo=
EightBallMaybe2=Ask again later.
EightBallNo5=
EightBallMaybe3=Better not tell you now.
EightBallMaybe4=Cannot predict now.
EightBallNo3=
EightBallMaybe5=Concentrate and ask again.
EightBallNo4=
EightBallNo1=
EightBallNo2=
EightBallYes2=It is decidedly so.
EightBallYes1=It is certain.
EightBallYes4=Yes - definitely.
EightBallYes3=Without a doubt.
EightBallYes6=As I see it, yes.
EightBallYes5=You may rely on it.
EightBallYes8=Outlook good.
EightBallYes7=Most likely.
EightBallMaybe1=Reply hazy, try again.
EightBallYes10=
[CommandInvite] [CommandInvite]
Provies a direct invite link for KittyBot= InviteInfo=
InviteInfo=Provides a direct invite link for KittyBot
[CommandWolfram] [CommandWolfram]
Something went wrong!= WolframNoArgs=You need to provide some arguments!
Will query wolframalpha with your question and give a full image output of the answer= WolframError=
You need to provide some arguments!= WolframInfo=Will query wolframalpha with your question and give a full image output of the answer
WolframError=Something went wrong!
WolframInfo=
WolframNoArgs=
[CommandMap] [CommandMap]
Seed= MapInfo=
Invalid arguments provided!= MapSeed=Seed
Height= MapInvalid=Invalid arguments provided!
Using mapgen v0.1= MapVersion=Using mapgen v0.1
Width= MapWidth=Width
MapInfo=Generates a map! You can pass additional information if you want with the flags `-s<seed>
MapHeight=Height
+2 -2
View File
@@ -9,11 +9,11 @@ public class CommandBeansShow extends Command
public CommandBeansShow(KittyRole level, KittyRating rating) { super(level, rating); } public CommandBeansShow(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("Displays how many beans you have"); }; public String HelpText() { return Localizer.Stub("BeansShowInfo"); };
@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)
{ {
res.Call(String.format(Localizer.Stub("You have %s beans!"), user.GetBeans())); res.Call(String.format(Localizer.Stub("BeansShowDisplay"), user.GetBeans()));
} }
} }
+18 -8
View File
@@ -1,5 +1,7 @@
package commands; package commands;
import java.util.Random;
import core.Command; import core.Command;
import core.Localizer; import core.Localizer;
import dataStructures.*; import dataStructures.*;
@@ -9,7 +11,7 @@ public class CommandBetBeans extends Command
public CommandBetBeans(KittyRole level, KittyRating rating) { super(level, rating); } public CommandBetBeans(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("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"); } public String HelpText() { return Localizer.Stub("BetBeansInfo"); }
@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)
@@ -22,19 +24,19 @@ public class CommandBetBeans extends Command
bet = Integer.parseInt(input.args); bet = Integer.parseInt(input.args);
if(bet < 50) if(bet < 50)
{ {
res.Call(Localizer.Stub("Please bet with at least 50 beans!")); res.Call(Localizer.Stub("BetBeansLowBet"));
return; return;
} }
} }
catch (NumberFormatException e) catch (NumberFormatException e)
{ {
res.Call(Localizer.Stub("That's not a valid bet!")); res.Call(Localizer.Stub("BetBeansNotValid"));
return; return;
} }
if(user.GetBeans() < bet) if(user.GetBeans() < bet)
{ {
res.Call(Localizer.Stub("You don't have enough beans!")); res.Call(Localizer.Stub("BetBeansNotEnough"));
return; return;
} }
@@ -49,12 +51,12 @@ public class CommandBetBeans extends Command
if(win == 0) if(win == 0)
{ {
res.Call(Localizer.Stub("Sorry, you didn't win, try again!")); res.Call(Localizer.Stub("BetBeansLose"));
return; return;
} }
user.ChangeBeans(bet*win); user.ChangeBeans(bet*win);
res.Call(String.format(Localizer.Stub("You won %s beans!"), "" + (bet*win))); res.Call(String.format(Localizer.Stub("BetBeansWin"), "" + (bet*win)));
} }
private int getWinning(int [] slots) private int getWinning(int [] slots)
@@ -69,7 +71,7 @@ public class CommandBetBeans extends Command
counter = 1; counter = 1;
if(counter == 3) if(counter == 3)
winning = 5; winning = 2;
if(counter == 4) if(counter == 4)
winning = 10; winning = 10;
@@ -83,10 +85,12 @@ public class CommandBetBeans extends Command
private int[] getSlots() private int[] getSlots()
{ {
Random gen = new Random();
int[] nums = new int[5]; int[] nums = new int[5];
for (int i = 0; i < nums.length; i++) for (int i = 0; i < nums.length; i++)
{ {
nums[i] = (int) (Math.random() * 5) + 1; nums[i] = Math.abs(gen.nextInt() % 7) + 1;
System.out.println(nums [i]);
} }
return nums; return nums;
} }
@@ -138,6 +142,12 @@ public class CommandBetBeans extends Command
case 5: case 5:
slotHearts += ":purple_heart:"; slotHearts += ":purple_heart:";
break; break;
case 6:
slotHearts += ":black_heart:";
break;
case 7:
slotHearts += ":broken_heart:";
break;
} }
} }
+1 -1
View File
@@ -17,7 +17,7 @@ public class CommandBlurry extends Command
public CommandBlurry(KittyRole level, KittyRating rating) { super(level, rating); } public CommandBlurry(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("Blurs your icon or the icon of a friend you mentioned"); }; public String HelpText() { return Localizer.Stub("BlurryInfo"); };
private static Long num = 0l; private static Long num = 0l;
+4 -4
View File
@@ -60,7 +60,7 @@ public class CommandBoop extends Command
} }
@Override @Override
public String HelpText() { return Localizer.Stub("Kitty will react with a counter"); } public String HelpText() { return Localizer.Stub("BoopInfo"); }
// Called when the command is run! // Called when the command is run!
@Override @Override
@@ -69,14 +69,14 @@ public class CommandBoop extends Command
if(input.mentions == null) if(input.mentions == null)
{ {
boopTracker.ApplyBoop(); boopTracker.ApplyBoop();
res.Call(String.format(Localizer.Stub("Woah! %s booped me! That's %s total!"), user.name, boopTracker.HowMany())); res.Call(String.format(Localizer.Stub("BoopStandard"), user.name, boopTracker.HowMany()));
} }
else else
{ {
if(input.mentions.length == 1) if(input.mentions.length == 1)
{ {
boopTracker.ApplyBoop(); boopTracker.ApplyBoop();
res.Call(String.format(Localizer.Stub("%s booped %s!"), user.name, input.mentions[0].name)); res.Call(String.format(Localizer.Stub("BoopPerson"), user.name, input.mentions[0].name));
return; return;
} }
@@ -90,7 +90,7 @@ public class CommandBoop extends Command
booped += "and " + input.mentions[i].name; booped += "and " + input.mentions[i].name;
} }
res.Call(String.format(Localizer.Stub("%s booped several others - %s!"), user.name, booped)); res.Call(String.format(Localizer.Stub("BoopMultiple"), user.name, booped));
} }
} }
} }
+3 -3
View File
@@ -9,7 +9,7 @@ public class CommandChangeIndicator extends Command
public CommandChangeIndicator(KittyRole level, KittyRating rating) { super(level, rating); } public CommandChangeIndicator(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
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!"); } public String HelpText() { return Localizer.Stub("ChangeIndicatorInfo"); }
@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)
@@ -17,11 +17,11 @@ public class CommandChangeIndicator extends Command
String arg = input.args.trim(); String arg = input.args.trim();
if(arg.length() == 0) if(arg.length() == 0)
{ {
res.Call("Please specify a letter or symbol to use!"); res.Call(Localizer.Stub("ChangeIndicatorError"));
return; return;
} }
guild.SetCommandIndicator(arg.substring(0, 1)); guild.SetCommandIndicator(arg.substring(0, 1));
res.Call(String.format(Localizer.Stub("Indicator changed to `%s`"), guild.GetCommandIndicator())); res.Call(String.format(Localizer.Stub("ChangeIndicatorChanged"), guild.GetCommandIndicator()));
} }
} }
+3 -3
View File
@@ -14,7 +14,7 @@ public class CommandChoose extends Command
public CommandChoose(KittyRole level, KittyRating rating) { super(level, rating); } public CommandChoose(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
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"); } public String HelpText() { return Localizer.Stub("ChooseInfo"); }
@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)
@@ -22,10 +22,10 @@ public class CommandChoose extends Command
String [] choices = input.args.split(","); String [] choices = input.args.split(",");
if(choices.length == 1) if(choices.length == 1)
{ {
res.Call("I can't choose from *one* thing!"); res.Call(Localizer.Stub("ChooseOne"));
return; return;
} }
res.Call(String.format(Localizer.Stub("I chooooooose %s!"), (choices[(int) (Math.random()*choices.length)]).toString())); res.Call(String.format(Localizer.Stub("ChooseChoice"), (choices[(int) (Math.random()*choices.length)]).toString()));
} }
} }
+2 -2
View File
@@ -12,14 +12,14 @@ public class CommandColiru extends Command
public CommandColiru(KittyRole level, KittyRating rating) { super(level, rating);} public CommandColiru(KittyRole level, KittyRating rating) { super(level, rating);}
@Override @Override
public String HelpText() { return Localizer.Stub("Will try to compile any c++ code you put in! Supports up to C++14 standard, uses g++."); } public String HelpText() { return Localizer.Stub("ColiruInfo"); }
@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)
{ {
if(input.args.trim().length() < 1) if(input.args.trim().length() < 1)
{ {
res.Call(Localizer.Stub("Please provide some c++ code to attempt to compile!")); res.Call(Localizer.Stub("ColiruError"));
return; return;
} }
+2 -2
View File
@@ -15,7 +15,7 @@ public class CommandDoWork extends Command
public CommandDoWork(KittyRole level, KittyRating rating) { super(level, rating); } public CommandDoWork(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("Occupies a core for a few seconds"); } public String HelpText() { return Localizer.Stub("DoWorkInfo"); }
// Called when the command is run! // Called when the command is run!
@Override @Override
@@ -28,6 +28,6 @@ public class CommandDoWork extends Command
thispieceofshit += Math.log((double)i); thispieceofshit += Math.log((double)i);
} }
res.Call(Localizer.Stub("I finished with my work! :D")); res.Call(Localizer.Stub("DoWorkFinished"));
} }
} }
+22 -22
View File
@@ -8,40 +8,40 @@ public class CommandEightBall extends Command
{ {
String [] answers = String [] answers =
{ {
Localizer.Stub("It is certain.") Localizer.Stub("EightBallYes1")
, Localizer.Stub("It is decidedly so.") , Localizer.Stub("EightBallYes2")
, Localizer.Stub("Without a doubt.") , Localizer.Stub("EightBallYes3")
, Localizer.Stub("Yes - definitely.") , Localizer.Stub("EightBallYes4")
, Localizer.Stub("You may rely on it.") , Localizer.Stub("EightBallYes5")
, Localizer.Stub("As I see it, yes.") , Localizer.Stub("EightBallYes6")
, Localizer.Stub("Most likely.") , Localizer.Stub("EightBallYes7")
, Localizer.Stub("Outlook good.") , Localizer.Stub("EightBallYes8")
, Localizer.Stub("Yes.") , Localizer.Stub("EightBallYes9")
, Localizer.Stub("Signs point to yes.") , Localizer.Stub("EightBallYes10")
, Localizer.Stub("Reply hazy, try again.") , Localizer.Stub("EightBallMaybe1")
, Localizer.Stub("Ask again later.") , Localizer.Stub("EightBallMaybe2")
, Localizer.Stub("Better not tell you now.") , Localizer.Stub("EightBallMaybe3")
, Localizer.Stub("Cannot predict now.") , Localizer.Stub("EightBallMaybe4")
, Localizer.Stub("Concentrate and ask again.") , Localizer.Stub("EightBallMaybe5")
, Localizer.Stub("Don't count on it.") , Localizer.Stub("EightBallNo1")
, Localizer.Stub("My reply is no.") , Localizer.Stub("EightBallNo2")
, Localizer.Stub("My sources say no.") , Localizer.Stub("EightBallNo3")
, Localizer.Stub("Outlook not so good.") , Localizer.Stub("EightBallNo4")
, Localizer.Stub("Very doubtful.") , Localizer.Stub("EightBallNo5")
}; };
public CommandEightBall(KittyRole level, KittyRating rating) { super(level, rating); } public CommandEightBall(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
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."); } public String HelpText() { return Localizer.Stub("EightBallInfo"); }
@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)
{ {
if(input.args.trim().length() < 1) if(input.args.trim().length() < 1)
res.Call(Localizer.Stub("Hmm? You'll need to ask a question!")); res.Call(Localizer.Stub("EightBallError"));
res.Call(answers[(int) (Math.random()*answers.length)]); res.Call(answers[(int) (Math.random()*answers.length)]);
} }
+4 -4
View File
@@ -9,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 Localizer.Stub("Gives beans to the mentioned users!"); } public String HelpText() { return Localizer.Stub("GiveBeansInfo"); }
@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)
@@ -20,20 +20,20 @@ public class CommandGiveBeans extends Command
} }
catch (NumberFormatException e) catch (NumberFormatException e)
{ {
res.Call(Localizer.Stub("That's not a valid number!")); res.Call(Localizer.Stub("GiveBeansInvalid"));
return; return;
} }
if(input.mentions == null) if(input.mentions == null)
{ {
res.Call(Localizer.Stub("You didn't mention anyone!")); res.Call(Localizer.Stub("GiveBeansNoneMentioned"));
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(String.format(Localizer.Stub("Gave %s %s beans!"), input.mentions[i].name, "" + beans)); res.Call(String.format(Localizer.Stub("GiveBeansSuccess"), input.mentions[i].name, "" + beans));
} }
} }
} }
+2 -2
View File
@@ -15,7 +15,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 Localizer.Stub("Lets you look up specific commands, or get a link to a list of all commands."); } public String HelpText() { return Localizer.Stub("HelpInfo"); }
@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)
@@ -24,7 +24,7 @@ public class CommandHelp extends Command
if(help == null) if(help == null)
{ {
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`"); help = Localizer.Stub("HelpDisplay");
} }
else else
{ {
+2 -2
View File
@@ -26,7 +26,7 @@ public class CommandHelpBuilder extends Command {
} }
@Override @Override
public String HelpText() { return Localizer.Stub("Emit help for all commands as formatted HTML"); } public String HelpText() { return Localizer.Stub("HelpBuilderInfo"); }
@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)
@@ -96,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 + " " + Localizer.Stub("commands") + headerEnd; accumulated += headerStart + roleStr + " commands" + headerEnd;
accumulated += sectionStart; accumulated += sectionStart;
// Section content // Section content
+2 -2
View File
@@ -15,11 +15,11 @@ 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 Localizer.Stub("Provides some extra info about KittyBot"); } public String HelpText() { return Localizer.Stub("InfoInfo"); }
@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)
{ {
res.Call(Localizer.Stub("I'm a Java application written with JDA! Check out my repo at <https://github.com/AlexStewartCode/KittyBot>")); res.Call(Localizer.Stub("InfoResponse"));
} }
} }
+1 -1
View File
@@ -10,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 Localizer.Stub("Provies a direct invite link for KittyBot"); } public String HelpText() { return Localizer.Stub("InviteInfo"); }
@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)
+2 -2
View File
@@ -12,14 +12,14 @@ public class CommandJDoodle extends Command
public CommandJDoodle(KittyRole level, KittyRating rating) { super(level, rating); } public CommandJDoodle(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("Will compile any java code you put in! Supports Java 1.8"); } public String HelpText() { return Localizer.Stub("JDoodleInfo"); }
@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)
{ {
if(input.args.trim().length() < 1) if(input.args.trim().length() < 1)
{ {
res.Call(Localizer.Stub("Please provide some java code to get it compiled!")); res.Call(Localizer.Stub("JDoodleError"));
return; return;
} }
+6 -6
View File
@@ -23,7 +23,7 @@ public class CommandMap extends Command
public CommandMap(KittyRole roleLevel, KittyRating contentRating) { super(roleLevel, contentRating); } public CommandMap(KittyRole roleLevel, KittyRating contentRating) { super(roleLevel, contentRating); }
@Override @Override
public String HelpText() { return String.format(Localizer.Stub("Generates a map! You can pass additional information if you want with the flags `-s<seed> -w<width> -h<height>`. If one of the fields isn't provided, its default will be used. Note that adjusting the width and height impacts the map outcomes.\n\nDefault seed: Random,\nDefault Width: 35(max %s),\nDefault Height: 25(max %s)"), "" + MaxWidth, "" + MaxHeight); } public String HelpText() { return String.format(Localizer.Stub("MapInfo"), "" + MaxWidth, "" + MaxHeight); }
@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)
@@ -60,7 +60,7 @@ public class CommandMap extends Command
} }
catch(NumberFormatException e) catch(NumberFormatException e)
{ {
res.Call(Localizer.Stub("Invalid arguments provided!")); res.Call(Localizer.Stub("MapInvalid"));
return; return;
} }
@@ -76,10 +76,10 @@ public class CommandMap extends Command
} }
// Response header creation // Response header creation
header += Localizer.Stub("Using mapgen v0.1") + "\n"; header += Localizer.Stub("MapVersion") + "\n";
header += Localizer.Stub("Seed") + ": `" + seed + "`, "; header += Localizer.Stub("MapSeed") + ": `" + seed + "`, ";
header += Localizer.Stub("Width") + "`"+ width +"`, "; header += Localizer.Stub("MapWidth") + "`"+ width +"`, ";
header += Localizer.Stub("Height") + ": `"+ height + "`\n"; header += Localizer.Stub("MapHeight") + ": `"+ height + "`\n";
// Response body creation // Response body creation
body += "```\n"; body += "```\n";
+1 -1
View File
@@ -23,7 +23,7 @@ public class CommandPerish extends Command
public CommandPerish(KittyRole level, KittyRating rating) { super(level, rating); } public CommandPerish(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("Adds a red, 'a n g e r y' overlay to your icon or the icon of a friend you mentioned"); }; public String HelpText() { return Localizer.Stub("PerishInfo"); };
private static Long num = 0l; private static Long num = 0l;
+2 -2
View File
@@ -15,12 +15,12 @@ public class CommandPing extends Command
public CommandPing(KittyRole level, KittyRating rating) { super(level, rating); } public CommandPing(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("Will respond with Pong!"); } public String HelpText() { return Localizer.Stub("PingInfo"); }
// Called when the command is run! // Called when the command is run!
@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)
{ {
res.Call(Localizer.Stub("Pong!")); res.Call(Localizer.Stub("PingResponse"));
} }
} }
+1 -1
View File
@@ -14,7 +14,7 @@ public class CommandPollManage extends Command
public CommandPollManage(KittyRole level, KittyRating rating) { super(level, rating); } public CommandPollManage(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("'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"); } public String HelpText() { return Localizer.Stub("PollMangeInfo"); }
@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)
+4 -2
View File
@@ -10,7 +10,7 @@ public class CommandPollResults extends Command
public CommandPollResults(KittyRole level, KittyRating rating) { super(level, rating); } public CommandPollResults(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("Will show current results of a poll and percentages of votes per choice"); } public String HelpText() { return Localizer.Stub("PollResultsInfo"); }
@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)
@@ -24,9 +24,11 @@ public class CommandPollResults extends Command
totalVotes += votes.get(i).votes; totalVotes += votes.get(i).votes;
} }
results += "The poll was " + guild.poll + "\n";
for(int i = 0; i < votes.size(); i++) for(int i = 0; i < votes.size(); i++)
{ {
results += String.format(Localizer.Stub("%s people voted for %s `%s` with `%s%` !\n "), votes.get(i).votes, votes.get(i).choice, (int)(((double)votes.get(i).votes) / ((double)totalVotes) * 100)); results += String.format(Localizer.Stub("PollResultsResponse"), votes.get(i).votes, votes.get(i).choice, (int)(((double)votes.get(i).votes) / ((double)totalVotes) * 100));
} }
res.Call(results); res.Call(results);
+4 -4
View File
@@ -8,18 +8,18 @@ public class CommandPollShow extends Command
public CommandPollShow(KittyRole level, KittyRating rating) { super(level, rating); } public CommandPollShow(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("Will show the current poll running"); } public String HelpText() { return Localizer.Stub("PollShowInfo"); }
@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)
{ {
if(!guild.polling) if(!guild.polling)
{ {
res.Call(Localizer.Stub("There is no poll running!")); res.Call(Localizer.Stub("PollShowNoPoll"));
return; return;
} }
String poll = String.format(Localizer.Stub("The current poll is `%s`\n"), guild.poll); String poll = String.format(Localizer.Stub("PollShowPoll"), guild.poll);
poll += Localizer.Stub("And the choices are:\n"); poll += Localizer.Stub("PollShowChoices");
for(int i = 0; i < guild.choices.size(); i++) for(int i = 0; i < guild.choices.size(); i++)
{ {
poll += (i+1) + ": `" + guild.choices.get(i).choice + "`\n"; poll += (i+1) + ": `" + guild.choices.get(i).choice + "`\n";
+6 -6
View File
@@ -8,7 +8,7 @@ public class CommandPollVote extends Command
public CommandPollVote(KittyRole level, KittyRating rating) { super(level, rating); } public CommandPollVote(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("Vote in a poll with the choice number, won't work if no poll is running, you can't change your vote once you have cast it! Be careful!"); } public String HelpText() { return Localizer.Stub("PollVoteInfo"); }
@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)
@@ -17,7 +17,7 @@ public class CommandPollVote extends Command
{ {
if(guild.hasVoted.contains(user.uniqueID)) if(guild.hasVoted.contains(user.uniqueID))
{ {
res.Call(Localizer.Stub("You already voted!")); res.Call(Localizer.Stub("PollVoteAlreadyVoted"));
return; return;
} }
try try
@@ -25,23 +25,23 @@ public class CommandPollVote extends Command
int voteNum = Integer.parseInt(input.args)-1; int voteNum = Integer.parseInt(input.args)-1;
if(voteNum >= guild.choices.size() || voteNum < 0) if(voteNum >= guild.choices.size() || voteNum < 0)
{ {
res.Call(String.format(Localizer.Stub("%s That's not a vaild vote!"), voteNum)); res.Call(String.format(Localizer.Stub("PollVoteNotValidVote"), voteNum));
return; return;
} }
KittyPoll polled = guild.choices.get(voteNum); KittyPoll polled = guild.choices.get(voteNum);
polled.votes++; polled.votes++;
guild.hasVoted.add(user.uniqueID); guild.hasVoted.add(user.uniqueID);
res.Call(Localizer.Stub("You successfully voted for") + " `" + polled.choice + "`!"); res.Call(Localizer.Stub("PollVoteSuccess") + " `" + polled.choice + "`!");
return; return;
} }
catch (NumberFormatException e) catch (NumberFormatException e)
{ {
res.Call(Localizer.Stub("That's not a vaild number!")); res.Call(Localizer.Stub("PollVoteNotValidNumber"));
return; return;
} }
} }
res.Call(Localizer.Stub("There is no poll running!")); res.Call(Localizer.Stub("PollVoteNoPoll"));
} }
} }
+3 -3
View File
@@ -14,7 +14,7 @@ public class CommandRPEnd extends Command
public CommandRPEnd (KittyRole level, KittyRating rating) { super(level, rating); } public CommandRPEnd (KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("Ends RP in channel"); } public String HelpText() { return Localizer.Stub("RPEndInfo"); }
@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)
@@ -33,11 +33,11 @@ public class CommandRPEnd extends Command
if(sending != null) if(sending != null)
{ {
res.CallFile(sending, "txt"); res.CallFile(sending, "txt");
res.Call(Localizer.Stub("Here's your file!")); res.Call(Localizer.Stub("RPEndFileOut"));
} }
else else
{ {
res.Call(Localizer.Stub("You can't end this RP!")); res.Call(Localizer.Stub("RPEndError"));
} }
} }
} }
+2 -2
View File
@@ -23,7 +23,7 @@ public class CommandRPG extends Command
} }
@Override @Override
public String HelpText() { return Localizer.Stub("Admin+ command only right now - experimental text RPG! Format is !rpg <rpg command>"); }; public String HelpText() { return Localizer.Stub("RPGInfo"); };
@Override @Override
@@ -45,7 +45,7 @@ public class CommandRPG extends Command
if(result == null) if(result == null)
{ {
res.Call(Localizer.Stub("Invalid RPG Command!")); res.Call(Localizer.Stub("RPGInvalid"));
return; return;
} }
+1 -1
View File
@@ -12,7 +12,7 @@ public class CommandRPStart extends Command
public CommandRPStart (KittyRole level, KittyRating rating) { super(level, rating); } public CommandRPStart (KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("Starts an rp, add people to it by mentioning them!"); } public String HelpText() { return Localizer.Stub("RPStartInfo"); }
@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)
+4 -4
View File
@@ -15,7 +15,7 @@ public class CommandRating extends Command
public CommandRating(KittyRole level, KittyRating rating) { super(level, rating); } public CommandRating(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("'0' is fully sfw (Derpi and e621 searches are disabled), '1' is filtered (kitty auto appends a sfw tag on any searches), '2' is nsfw (any search will go through). Some other words are supported for setting filter as well."); } public String HelpText() { return Localizer.Stub("RatingInfo"); }
// Called when the command is run! // Called when the command is run!
@Override @Override
@@ -55,11 +55,11 @@ public class CommandRating extends Command
} }
if(newRating != null) if(newRating != null)
res.Call(Localizer.Stub("Kittybot content set to") + " " + newRating); res.Call(Localizer.Stub("RatingChanged") + " " + newRating);
else else
res.Call(Localizer.Stub("Invalid content rating") + " `" + input.args + "`"); res.Call(Localizer.Stub("RatingInvalid") + " `" + input.args + "`");
if(newRating.equals("Filtered")) if(newRating.equals("Filtered"))
res.Call(Localizer.Stub("Warning: NSFW may slip through, images are only based on tags on their respective sites!")); res.Call(Localizer.Stub("RatingWarning"));
} }
} }
+5 -5
View File
@@ -9,20 +9,20 @@ public class CommandRole extends Command
public CommandRole (KittyRole level, KittyRating rating) { super(level, rating); } public CommandRole (KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("Will show the current role you have, Admins can change others roles with input of 'role x @y' with x being blacklist, general, mod, or admin. Blacklist will not allow the user to interact with kitty anymore, general mod and admin will give the user access to those commands."); } public String HelpText() { return Localizer.Stub("RoleInfo"); }
@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)
{ {
if(input.args.isEmpty()) if(input.args.isEmpty())
{ {
res.Call(Localizer.Stub("Your role is") + " " + user.GetRole().name() + "!"); res.Call(Localizer.Stub("RoleStandardResponse") + " " + user.GetRole().name() + "!");
return; return;
} }
if(user.GetRole().getValue() < KittyRole.Admin.getValue()) if(user.GetRole().getValue() < KittyRole.Admin.getValue())
{ {
res.Call(String.format(Localizer.Stub("You aren't allowed to do that! You must have the KittyRole '%' or higher!"), KittyRole.Admin.toString())); res.Call(String.format(Localizer.Stub("RoleError"), KittyRole.Admin.toString()));
return; return;
} }
@@ -46,7 +46,7 @@ public class CommandRole extends Command
break; break;
default: default:
res.Call(Localizer.Stub("Please enter `general`, `mod`, or `admin`!")); res.Call(Localizer.Stub("RoleNeededRole"));
return; return;
} }
String users = ""; String users = "";
@@ -56,6 +56,6 @@ public class CommandRole extends Command
users += input.mentions[i].name + " "; users += input.mentions[i].name + " ";
} }
res.Call(String.format(Localizer.Stub("Changed %s to role `%s`!"), users, newRole.name())); res.Call(String.format(Localizer.Stub("RoleChanged"), users, newRole.name()));
} }
} }
+2 -2
View File
@@ -16,7 +16,7 @@ public class CommandRoll extends Command
public CommandRoll(KittyRole level, KittyRating rating) { super(level, rating); } public CommandRoll(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("Based on input of xdy where x is number of dice and y is faces kitty will roll that amount of dice, display the individual rolls and total"); } public String HelpText() { return Localizer.Stub("RollInfo"); }
@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)
@@ -27,7 +27,7 @@ public class CommandRoll extends Command
} }
catch(Exception e) catch(Exception e)
{ {
res.Call(Localizer.Stub("Didn't work ;3;")); res.Call(Localizer.Stub("RollError"));
} }
} }
+1 -1
View File
@@ -20,7 +20,7 @@ public class CommandShutdown extends Command
public CommandShutdown(KittyRole level, KittyRating rating) { super(level, rating); } public CommandShutdown(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("Stops kitty. `-s` or `safe` as an argument attempts to sync off the database before shutdown."); } public String HelpText() { return Localizer.Stub("ShutdownInfo"); }
// Called when the command is run! // Called when the command is run!
@Override @Override
+1 -1
View File
@@ -17,7 +17,7 @@ public class CommandStark extends Command
public CommandStark(KittyRole level, KittyRating rating) { super(level, rating); } public CommandStark(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("Snaps your icon or the icon of a friend you mentioned"); }; public String HelpText() { return Localizer.Stub("StarkInfo"); };
private static Long num = 0l; private static Long num = 0l;
+1 -1
View File
@@ -17,7 +17,7 @@ public class CommandStats extends Command
public CommandStats(KittyRole level, KittyRating rating) { super(level, rating); } public CommandStats(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
public String HelpText() { return Localizer.Stub("Displays the actively running KittyBot application information"); } public String HelpText() { return Localizer.Stub("StatsInfo"); }
// Called when the command is run! // Called when the command is run!
@Override @Override
+1 -1
View File
@@ -23,7 +23,7 @@ public class CommandTeey extends Command
private static Long num = 0l; private static Long num = 0l;
@Override @Override
public String HelpText() { return Localizer.Stub("Teey yourself back into existance, or teey a friend with @!"); } public String HelpText() { return Localizer.Stub("TeeyInfo"); }
// Called when the command is run! // Called when the command is run!
@Override @Override
+3 -2
View File
@@ -11,15 +11,16 @@ public class CommandTweet extends Command
public CommandTweet(KittyRole level, KittyRating rating) { super(level, rating); } public CommandTweet(KittyRole level, KittyRating rating) { super(level, rating); }
@Override @Override
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"); } public String HelpText() { return Localizer.Stub("TweetInfo"); }
@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)
{ {
//TODO: Figure out how to pass pictures correctly
try { try {
res.Call(tweet.tweet(input.args)); res.Call(tweet.tweet(input.args));
} catch (Exception e) { } catch (Exception e) {
res.Call(Localizer.Stub("Tweet command failed!")); res.Call(Localizer.Stub("TweetError"));
} }
} }
} }
+3 -3
View File
@@ -15,13 +15,13 @@ public class CommandWolfram extends Command
public CommandWolfram(KittyRole level, KittyRating rating) { super(level, rating);} public CommandWolfram(KittyRole level, KittyRating rating) { super(level, rating);}
@Override @Override
public String HelpText() { return Localizer.Stub("Will query wolframalpha with your question and give a full image output of the answer"); } public String HelpText() { return Localizer.Stub("WolframInfo"); }
@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)
{ {
if(input.args == null || input.args.trim().length() == 0) if(input.args == null || input.args.trim().length() == 0)
res.Call(Localizer.Stub("You need to provide some arguments!")); res.Call(Localizer.Stub("WolframNoArgs"));
try try
{ {
@@ -31,7 +31,7 @@ public class CommandWolfram extends Command
} }
catch (IOException e) catch (IOException e)
{ {
res.Call(Localizer.Stub("Something went wrong!")); res.Call(Localizer.Stub("WolframError"));
} }
} }
} }
+1 -1
View File
@@ -23,7 +23,7 @@ public class CommandYeet extends Command
private static Long num = 0l; private static Long num = 0l;
@Override @Override
public String HelpText() { return Localizer.Stub("Yeet yourself or yeet a friend with @!"); } public String HelpText() { return Localizer.Stub("YeetInfo"); }
// Called when the command is run! // Called when the command is run!
@Override @Override