+ Added Stark, Stats, Tweet (stubbed only), Wolfram, Yeet

This commit is contained in:
Matthew Cech
2019-04-06 23:49:08 -07:00
parent 1bdbfbac17
commit aa415e8e76
6 changed files with 30 additions and 8 deletions
+17
View File
@@ -61,6 +61,12 @@ Changed %s to role `%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` = Indicator changed to `%s` =
[CommandTweet]
FUCKED UP HARD =
[CommandStats]
Displays the actively running KittyBot application information =
[CommandMap] [CommandMap]
Invalid arguments provided! = Invalid arguments provided! =
Using mapgen v0.1 = Using mapgen v0.1 =
@@ -131,16 +137,27 @@ Gives beans to the mentioned users! =
You didn't mention anyone! = You didn't mention anyone! =
Gave %s %s beans! = Gave %s %s beans! =
[CommandWolfram]
Will query wolframalpha with your question and give a full image output of the answer =
Something went wrong! =
You need to provide some arguments! =
[CommandRPG] [CommandRPG]
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> =
Invalid RPG Command! = Invalid RPG Command! =
[CommandYeet]
Yeet yourself or yeet a friend with @! =
[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 = '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] [CommandRPStart]
Starts an rp, add people to it by mentioning them! = Starts an rp, add people to it by mentioning them! =
[CommandStark]
Snaps your icon or the icon of a friend you mentioned =
[CommandJDoodle] [CommandJDoodle]
Will compile any java code you put in! Supports Java 1.8 = Will compile any java code you put in! Supports Java 1.8 =
+2 -1
View File
@@ -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.*; import dataStructures.*;
import utils.ImageUtils; import utils.ImageUtils;
@@ -16,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 "Snaps your icon or the icon of a friend you mentioned"; }; public String HelpText() { return Localizer.Stub("Snaps your icon or the icon of a friend you mentioned"); };
private static Long num = 0l; private static Long num = 0l;
+2 -1
View File
@@ -1,6 +1,7 @@
package commands; package commands;
import core.Command; import core.Command;
import core.Localizer;
import core.CommandManager.ThreadData; import core.CommandManager.ThreadData;
import dataStructures.KittyChannel; import dataStructures.KittyChannel;
import dataStructures.KittyGuild; import dataStructures.KittyGuild;
@@ -16,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 "Displays the actively running KittyBot application information"; } public String HelpText() { return Localizer.Stub("Displays the actively running KittyBot application information"); }
// Called when the command is run! // Called when the command is run!
@Override @Override
+3 -2
View File
@@ -1,6 +1,7 @@
package commands; package commands;
import core.Command; import core.Command;
import core.Localizer;
import dataStructures.*; import dataStructures.*;
import network.NetworkTwitter; import network.NetworkTwitter;
@@ -10,7 +11,7 @@ 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 "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 @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)
@@ -18,7 +19,7 @@ public class CommandTweet extends Command
try { try {
res.Call(tweet.tweet(input.args)); res.Call(tweet.tweet(input.args));
} catch (Exception e) { } catch (Exception e) {
res.Call("FUCKED UP HARD"); res.Call(Localizer.Stub("FUCKED UP HARD"));
} }
} }
} }
+4 -3
View File
@@ -3,6 +3,7 @@ package commands;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import core.Command; import core.Command;
import core.Localizer;
import dataStructures.*; import dataStructures.*;
import network.*; import network.*;
import utils.ImageUtils; import utils.ImageUtils;
@@ -14,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 "Will query wolframalpha with your question and give a full image output of the answer"; } public String HelpText() { return Localizer.Stub("Will query wolframalpha with your question and give a full image output of the answer"); }
@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("You need to provide some arguments!"); res.Call(Localizer.Stub("You need to provide some arguments!"));
try try
{ {
@@ -30,7 +31,7 @@ public class CommandWolfram extends Command
} }
catch (IOException e) catch (IOException e)
{ {
res.Call("Something went wrong!"); res.Call(Localizer.Stub("Something went wrong!"));
} }
} }
} }
+2 -1
View File
@@ -20,6 +20,7 @@ import javax.imageio.stream.FileImageOutputStream;
import javax.imageio.stream.ImageOutputStream; import javax.imageio.stream.ImageOutputStream;
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;
@@ -38,7 +39,7 @@ public class CommandYeet extends Command
private static Long num = 0l; private static Long num = 0l;
@Override @Override
public String HelpText() { return "Yeet yourself or yeet a friend with @!"; } public String HelpText() { return Localizer.Stub("Yeet yourself or yeet a friend with @!"); }
// Called when the command is run! // Called when the command is run!
@Override @Override