+ Added roll, RPEnd, RPG, RPStart, Shutdown
This commit is contained in:
+86
-62
@@ -1,25 +1,25 @@
|
|||||||
[CommandEightBall]
|
[CommandEightBall]
|
||||||
It is certain. =
|
|
||||||
Ask again later. =
|
Ask again later. =
|
||||||
My sources say no. =
|
My sources say no. =
|
||||||
You may rely on it. =
|
You may rely on it. =
|
||||||
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. =
|
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. =
|
Without a doubt. =
|
||||||
It is decidedly so. =
|
|
||||||
My reply is no. =
|
My reply is no. =
|
||||||
|
Signs point to yes. =
|
||||||
|
Reply hazy, try 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. =
|
||||||
|
Yes. =
|
||||||
|
Yes - definitely. =
|
||||||
|
It is certain. =
|
||||||
|
Concentrate and ask again. =
|
||||||
|
It is decidedly so. =
|
||||||
As I see it, yes. =
|
As I see it, yes. =
|
||||||
Outlook good. =
|
Outlook good. =
|
||||||
Outlook not so good. =
|
Outlook not so good. =
|
||||||
Cannot predict now. =
|
Cannot predict now. =
|
||||||
Signs point to yes. =
|
|
||||||
Most likely. =
|
Most likely. =
|
||||||
Reply hazy, try again. =
|
|
||||||
Very doubtful. =
|
Very doubtful. =
|
||||||
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 - definitely. =
|
|
||||||
Better not tell you now. =
|
Better not tell you now. =
|
||||||
|
|
||||||
[CommandColiru]
|
[CommandColiru]
|
||||||
@@ -32,100 +32,124 @@ Adds a red, 'a n g e r y' overlay to your icon or the icon of a friend you menti
|
|||||||
Displays how many beans you have =
|
Displays how many beans you have =
|
||||||
You have %s beans! =
|
You have %s beans! =
|
||||||
|
|
||||||
|
[CommandPollResults]
|
||||||
|
%s people voted for %s `%s` with `%s%` !\n =
|
||||||
|
Will show current results of a poll and percentages of votes per choice =
|
||||||
|
%s people voted for %s `%s` with `%s%` !\n =
|
||||||
|
|
||||||
|
[CommandShutdown]
|
||||||
|
Forced immediate shutdown, threads abandoned without sync. =
|
||||||
|
Stops kitty. `-s` or `safe` as an argument attempts to sync off the database before shutdown. =
|
||||||
|
Forced shutdown, database synced before abandoning threads. =
|
||||||
|
|
||||||
[CommandBetBeans]
|
[CommandBetBeans]
|
||||||
Please bet with at least 50 beans! =
|
|
||||||
That's not a valid bet! =
|
That's not a valid bet! =
|
||||||
|
You don't have enough beans! =
|
||||||
|
Please bet with at least 50 beans! =
|
||||||
You won %s beans! =
|
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! =
|
|
||||||
|
|
||||||
[CommandRole]
|
[CommandRole]
|
||||||
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. =
|
|
||||||
Changed %s to role `%s`! =
|
|
||||||
You aren't allowed to do that! You must have the KittyRole '%' or higher! =
|
You aren't allowed to do that! You must have the KittyRole '%' or higher! =
|
||||||
Please enter `general`, `mod`, or `admin`! =
|
Please enter `general`, `mod`, or `admin`! =
|
||||||
Your role is =
|
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. =
|
||||||
[CommandPollShow]
|
Changed %s to role `%s`! =
|
||||||
There is no poll running! =
|
|
||||||
And the choices are:\n =
|
|
||||||
Will show the current poll running =
|
|
||||||
The current poll is `%s`\n =
|
|
||||||
|
|
||||||
[CommandPing]
|
|
||||||
Pong! =
|
|
||||||
Will respond with Pong! =
|
|
||||||
|
|
||||||
[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! =
|
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` =
|
Indicator changed to `%s` =
|
||||||
|
|
||||||
[CommandPollManage]
|
[CommandMap]
|
||||||
'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 =
|
Invalid arguments provided! =
|
||||||
|
Using mapgen v0.1 =
|
||||||
[CommandHelpBuilder]
|
Width =
|
||||||
commands =
|
Seed =
|
||||||
Emit help for all commands as formatted HTML =
|
Height =
|
||||||
|
|
||||||
[CommandPollVote]
|
[CommandPollVote]
|
||||||
You successfully voted for =
|
|
||||||
You already voted =
|
You already voted =
|
||||||
That's not a vaild number! =
|
That's not a vaild number! =
|
||||||
%s That's not a vaild vote! =
|
%s That's not a vaild vote! =
|
||||||
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! =
|
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! =
|
||||||
|
You successfully voted for =
|
||||||
[CommandRating]
|
|
||||||
Kittybot content set to =
|
|
||||||
Warning: NSFW may slip through, images are only based on tags on their respective sites! =
|
|
||||||
Invalid content rating =
|
|
||||||
|
|
||||||
[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/ =
|
|
||||||
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 =
|
|
||||||
|
|
||||||
[CommandJDoodle]
|
|
||||||
Will compile any java code you put in! Supports Java 1.8 =
|
|
||||||
|
|
||||||
[CommandMap]
|
|
||||||
Invalid arguments provided! =
|
|
||||||
Seed =
|
|
||||||
Using mapgen v0.1 =
|
|
||||||
Height =
|
|
||||||
Width =
|
|
||||||
|
|
||||||
[CommandDoWork]
|
[CommandDoWork]
|
||||||
I finished with my work! = D =
|
I finished with my work! = D =
|
||||||
I finished with my work! :D =
|
I finished with my work! :D =
|
||||||
Occupies a core for a few seconds =
|
Occupies a core for a few seconds =
|
||||||
|
|
||||||
[CommandPollResults]
|
|
||||||
Will show current results of a poll and percentages of votes per choice =
|
|
||||||
%s people voted for %s `%s` with `%s%` !\n =
|
|
||||||
|
|
||||||
[CommandBoop]
|
|
||||||
%s booped %s! =
|
|
||||||
Woah! %s booped me! That's %s total! =
|
|
||||||
Kitty will react with a counter =
|
|
||||||
%s booped several others - %s! =
|
|
||||||
|
|
||||||
[CommandHelp]
|
[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` =
|
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` =
|
||||||
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` =
|
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. =
|
Lets you look up specific commands, or get a link to a list of all commands. =
|
||||||
|
|
||||||
[CommandInvite]
|
[CommandPing]
|
||||||
Provies a direct invite link for KittyBot =
|
Will respond with Pong! =
|
||||||
|
Pong! =
|
||||||
|
|
||||||
|
[CommandBoop]
|
||||||
|
Woah! %s booped me! That's %s total! =
|
||||||
|
%s booped several others - %s! =
|
||||||
|
%s booped %s! =
|
||||||
|
Kitty will react with a counter =
|
||||||
|
|
||||||
|
[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/ =
|
||||||
|
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]
|
[CommandBlurry]
|
||||||
Blurs your icon or the icon of a friend you mentioned =
|
Blurs your icon or the icon of a friend you mentioned =
|
||||||
|
|
||||||
|
[CommandHelpBuilder]
|
||||||
|
Emit help for all commands as formatted HTML =
|
||||||
|
commands =
|
||||||
|
|
||||||
|
[CommandRating]
|
||||||
|
Warning = NSFW may slip through, images are only based on tags on their respective sites! =
|
||||||
|
Kittybot content set to =
|
||||||
|
Warning: NSFW may slip through, images are only based on tags on their respective sites! =
|
||||||
|
Invalid content rating =
|
||||||
|
|
||||||
|
[CommandRPEnd]
|
||||||
|
Here's your file! =
|
||||||
|
You can't end this RP! =
|
||||||
|
Ends RP in channel =
|
||||||
|
|
||||||
|
[CommandPollShow]
|
||||||
|
Will show the current poll running =
|
||||||
|
The current poll is `%s`\n =
|
||||||
|
And the choices are = \n =
|
||||||
|
There is no poll running! =
|
||||||
|
And the choices are:\n =
|
||||||
|
|
||||||
[CommandGiveBeans]
|
[CommandGiveBeans]
|
||||||
That's not a valid number! =
|
That's not a valid number! =
|
||||||
Gave %s %s beans! =
|
|
||||||
Gives beans to the mentioned users! =
|
Gives beans to the mentioned users! =
|
||||||
You didn't mention anyone! =
|
You didn't mention anyone! =
|
||||||
|
Gave %s %s beans! =
|
||||||
|
|
||||||
|
[CommandRPG]
|
||||||
|
Admin+ command only right now - experimental text RPG! Format is !rpg <rpg command> =
|
||||||
|
Invalid RPG Command! =
|
||||||
|
|
||||||
|
[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! =
|
||||||
|
|
||||||
|
[CommandJDoodle]
|
||||||
|
Will compile any java code you put in! Supports Java 1.8 =
|
||||||
|
|
||||||
|
[CommandRoll]
|
||||||
|
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 =
|
||||||
|
Didn't work ;3; =
|
||||||
|
|
||||||
|
[CommandInvite]
|
||||||
|
Provies a direct invite link for KittyBot =
|
||||||
|
|
||||||
[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 =
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import java.io.FileNotFoundException;
|
|||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
|
|
||||||
import core.Command;
|
import core.Command;
|
||||||
|
import core.Localizer;
|
||||||
import core.RPManager;
|
import core.RPManager;
|
||||||
import dataStructures.*;
|
import dataStructures.*;
|
||||||
|
|
||||||
@@ -13,24 +14,30 @@ 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 "Ends RP in channel"; }
|
public String HelpText() { return Localizer.Stub("Ends RP in channel"); }
|
||||||
|
|
||||||
@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)
|
||||||
{
|
{
|
||||||
File sending = null;
|
File sending = null;
|
||||||
try {
|
|
||||||
|
try
|
||||||
|
{
|
||||||
sending = RPManager.instance.endRP(channel, user);
|
sending = RPManager.instance.endRP(channel, user);
|
||||||
} catch (FileNotFoundException | UnsupportedEncodingException e)
|
}
|
||||||
|
catch (FileNotFoundException | UnsupportedEncodingException e)
|
||||||
{
|
{
|
||||||
System.out.println("I don't know how you got here");
|
System.out.println("I don't know how you got here");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(sending != null)
|
if(sending != null)
|
||||||
{
|
{
|
||||||
res.CallFile(sending, "txt");
|
res.CallFile(sending, "txt");
|
||||||
res.Call("Here's your file!");
|
res.Call(Localizer.Stub("Here's your file!"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
res.Call("You can't end this RP!");
|
{
|
||||||
|
res.Call(Localizer.Stub("You can't end this RP!"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package commands;
|
package commands;
|
||||||
|
|
||||||
import core.Command;
|
import core.Command;
|
||||||
|
import core.Localizer;
|
||||||
import core.rpg.RPGFramework;
|
import core.rpg.RPGFramework;
|
||||||
import dataStructures.KittyChannel;
|
import dataStructures.KittyChannel;
|
||||||
import dataStructures.KittyGuild;
|
import dataStructures.KittyGuild;
|
||||||
@@ -22,7 +23,7 @@ public class CommandRPG extends Command
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String HelpText() { return "Admin+ command only right now - experimental text RPG! Format is !rpg <rpg command>"; };
|
public String HelpText() { return Localizer.Stub("Admin+ command only right now - experimental text RPG! Format is !rpg <rpg command>"); };
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -42,7 +43,7 @@ public class CommandRPG extends Command
|
|||||||
|
|
||||||
if(result == null)
|
if(result == null)
|
||||||
{
|
{
|
||||||
res.Call("Invalid RPG Command!");
|
res.Call(Localizer.Stub("Invalid RPG Command!"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package commands;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import core.Command;
|
import core.Command;
|
||||||
|
import core.Localizer;
|
||||||
import core.RPManager;
|
import core.RPManager;
|
||||||
import dataStructures.*;
|
import dataStructures.*;
|
||||||
|
|
||||||
@@ -11,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 "Starts an rp, add people to it by mentioning them!"; }
|
public String HelpText() { return Localizer.Stub("Starts an rp, add people to it by mentioning them!"); }
|
||||||
|
|
||||||
@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)
|
||||||
|
|||||||
@@ -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 "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("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"); }
|
||||||
|
|
||||||
@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("Didn't work ;3;");
|
res.Call(Localizer.Stub("Didn't work ;3;"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package commands;
|
|||||||
|
|
||||||
import core.Command;
|
import core.Command;
|
||||||
import core.DatabaseManager;
|
import core.DatabaseManager;
|
||||||
|
import core.Localizer;
|
||||||
import core.Stats;
|
import core.Stats;
|
||||||
import dataStructures.KittyChannel;
|
import dataStructures.KittyChannel;
|
||||||
import dataStructures.KittyGuild;
|
import dataStructures.KittyGuild;
|
||||||
@@ -17,7 +18,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 "Stops kitty. `-s` or `safe` as an argument attempts to sync off the database before shutdown."; }
|
public String HelpText() { return Localizer.Stub("Stops kitty. `-s` or `safe` as an argument attempts to sync off the database before shutdown."); }
|
||||||
|
|
||||||
// Called when the command is run!
|
// Called when the command is run!
|
||||||
@Override
|
@Override
|
||||||
@@ -41,12 +42,12 @@ public class CommandShutdown extends Command
|
|||||||
if(isSafe)
|
if(isSafe)
|
||||||
{
|
{
|
||||||
DatabaseManager.instance.Upkeep(); // Force upkeep, this works so long as on main thread.
|
DatabaseManager.instance.Upkeep(); // Force upkeep, this works so long as on main thread.
|
||||||
res.CallImmediate("Forced shutdown, database synced before abandoning threads.");
|
res.CallImmediate(Localizer.Stub("Forced shutdown, database synced before abandoning threads."));
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
res.CallImmediate("Forced immediate shutdown, threads abandoned without sync.");
|
res.CallImmediate(Localizer.Stub("Forced immediate shutdown, threads abandoned without sync."));
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user