+ Added Stark, Stats, Tweet (stubbed only), Wolfram, Yeet
This commit is contained in:
@@ -8,6 +8,7 @@ import java.io.IOException;
|
||||
import javax.imageio.ImageIO;
|
||||
|
||||
import core.Command;
|
||||
import core.Localizer;
|
||||
import dataStructures.*;
|
||||
import utils.ImageUtils;
|
||||
|
||||
@@ -16,7 +17,7 @@ public class CommandStark extends Command
|
||||
public CommandStark(KittyRole level, KittyRating rating) { super(level, rating); }
|
||||
|
||||
@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;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package commands;
|
||||
|
||||
import core.Command;
|
||||
import core.Localizer;
|
||||
import core.CommandManager.ThreadData;
|
||||
import dataStructures.KittyChannel;
|
||||
import dataStructures.KittyGuild;
|
||||
@@ -16,7 +17,7 @@ public class CommandStats extends Command
|
||||
public CommandStats(KittyRole level, KittyRating rating) { super(level, rating); }
|
||||
|
||||
@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!
|
||||
@Override
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package commands;
|
||||
|
||||
import core.Command;
|
||||
import core.Localizer;
|
||||
import dataStructures.*;
|
||||
import network.NetworkTwitter;
|
||||
|
||||
@@ -10,7 +11,7 @@ public class CommandTweet extends Command
|
||||
public CommandTweet(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)
|
||||
@@ -18,7 +19,7 @@ public class CommandTweet extends Command
|
||||
try {
|
||||
res.Call(tweet.tweet(input.args));
|
||||
} catch (Exception e) {
|
||||
res.Call("FUCKED UP HARD");
|
||||
res.Call(Localizer.Stub("FUCKED UP HARD"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ package commands;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import core.Command;
|
||||
import core.Localizer;
|
||||
import dataStructures.*;
|
||||
import network.*;
|
||||
import utils.ImageUtils;
|
||||
@@ -14,13 +15,13 @@ public class CommandWolfram extends Command
|
||||
public CommandWolfram(KittyRole level, KittyRating rating) { super(level, rating);}
|
||||
|
||||
@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
|
||||
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||
{
|
||||
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
|
||||
{
|
||||
@@ -30,7 +31,7 @@ public class CommandWolfram extends Command
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
res.Call("Something went wrong!");
|
||||
res.Call(Localizer.Stub("Something went wrong!"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,6 +20,7 @@ import javax.imageio.stream.FileImageOutputStream;
|
||||
import javax.imageio.stream.ImageOutputStream;
|
||||
|
||||
import core.Command;
|
||||
import core.Localizer;
|
||||
import dataStructures.KittyChannel;
|
||||
import dataStructures.KittyGuild;
|
||||
import dataStructures.KittyRating;
|
||||
@@ -38,7 +39,7 @@ public class CommandYeet extends Command
|
||||
private static Long num = 0l;
|
||||
|
||||
@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!
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user