Generalized Localizer File

This commit is contained in:
Alex Stewart
2019-04-14 00:25:52 -07:00
parent fbd047849c
commit e0c761dfc0
36 changed files with 268 additions and 213 deletions
+3 -2
View File
@@ -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"));
}
}
}