= Doodle, Map, Perish, Ping, Manage
This commit is contained in:
+30
-8
@@ -25,6 +25,9 @@ Better not tell you now. =
|
|||||||
[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++. =
|
||||||
|
|
||||||
|
[CommandPerish]
|
||||||
|
Adds a red, 'a n g e r y' overlay to your icon or the icon of a friend you mentioned =
|
||||||
|
|
||||||
[CommandBeansShow]
|
[CommandBeansShow]
|
||||||
Displays how many beans you have =
|
Displays how many beans you have =
|
||||||
You have %s beans! =
|
You have %s beans! =
|
||||||
@@ -37,14 +40,36 @@ 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! =
|
||||||
|
|
||||||
|
[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]
|
||||||
|
'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 =
|
||||||
|
|
||||||
[CommandHelpBuilder]
|
[CommandHelpBuilder]
|
||||||
commands =
|
commands =
|
||||||
Emit help for all commands as formatted HTML =
|
Emit help for all commands as formatted HTML =
|
||||||
|
|
||||||
|
[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 =
|
||||||
@@ -56,20 +81,17 @@ Woah! %s booped me! That's %s total! =
|
|||||||
Kitty will react with a counter =
|
Kitty will react with a counter =
|
||||||
%s booped several others - %s! =
|
%s booped several others - %s! =
|
||||||
|
|
||||||
|
[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` =
|
||||||
|
Lets you look up specific commands, or get a link to a list of all commands. =
|
||||||
|
|
||||||
[CommandInvite]
|
[CommandInvite]
|
||||||
Provies a direct invite link for KittyBot =
|
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]
|
[CommandBlurry]
|
||||||
Blurs your icon or the icon of a friend you mentioned =
|
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]
|
[CommandGiveBeans]
|
||||||
That's not a valid number! =
|
That's not a valid number! =
|
||||||
Gave %s %s beans! =
|
Gave %s %s beans! =
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package commands;
|
package commands;
|
||||||
|
|
||||||
import core.Command;
|
import core.Command;
|
||||||
|
import core.Localizer;
|
||||||
import dataStructures.*;
|
import dataStructures.*;
|
||||||
import network.NetworkJDoodle;
|
import network.NetworkJDoodle;
|
||||||
|
|
||||||
@@ -11,7 +12,7 @@ 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 "Will compile any java code you put in! Supports Java 1.8"; }
|
public String HelpText() { return Localizer.Stub("Will compile any java code you put in! Supports Java 1.8"); }
|
||||||
|
|
||||||
@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)
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package commands;
|
|||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
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;
|
||||||
@@ -22,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 "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 "+ MaxWidth + "),\nDefault Height: 25(max " + MaxHeight + ")"; }
|
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); }
|
||||||
|
|
||||||
@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)
|
||||||
@@ -59,7 +60,7 @@ public class CommandMap extends Command
|
|||||||
}
|
}
|
||||||
catch(NumberFormatException e)
|
catch(NumberFormatException e)
|
||||||
{
|
{
|
||||||
res.Call("Invalid arguments provided!");
|
res.Call(Localizer.Stub("Invalid arguments provided!"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,8 +76,10 @@ public class CommandMap extends Command
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Response header creation
|
// Response header creation
|
||||||
header += "Using mapgen v0.1\n";
|
header += Localizer.Stub("Using mapgen v0.1") + "\n";
|
||||||
header += "Seed: `" + seed + "`, Width: `"+ width +"`, Height: `"+ height + "`\n";
|
header += Localizer.Stub("Seed") + ": `" + seed + "`, ";
|
||||||
|
header += Localizer.Stub("Width") + "`"+ width +"`, ";
|
||||||
|
header += Localizer.Stub("Height") + ": `"+ height + "`\n";
|
||||||
|
|
||||||
// Response body creation
|
// Response body creation
|
||||||
body += "```\n";
|
body += "```\n";
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import java.io.IOException;
|
|||||||
import javax.imageio.ImageIO;
|
import javax.imageio.ImageIO;
|
||||||
|
|
||||||
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;
|
||||||
@@ -22,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 "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("Adds a red, 'a n g e r y' overlay to your icon or the icon of a friend you mentioned"); };
|
||||||
|
|
||||||
private static Long num = 0l;
|
private static Long num = 0l;
|
||||||
|
|
||||||
|
|||||||
@@ -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 "Will respond with Pong!"; }
|
public String HelpText() { return Localizer.Stub("Will respond with Pong!"); }
|
||||||
|
|
||||||
// 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("Pong!");
|
res.Call(Localizer.Stub("Pong!"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 "'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("'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"); }
|
||||||
|
|
||||||
@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