Generalized Localizer File
This commit is contained in:
@@ -11,15 +11,16 @@ public class CommandTweet extends Command
|
||||
public CommandTweet(KittyRole level, KittyRating rating) { super(level, rating); }
|
||||
|
||||
@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
|
||||
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||
{
|
||||
//TODO: Figure out how to pass pictures correctly
|
||||
try {
|
||||
res.Call(tweet.tweet(input.args));
|
||||
} catch (Exception e) {
|
||||
res.Call(Localizer.Stub("Tweet command failed!"));
|
||||
res.Call(Localizer.Stub("TweetError"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user