Created Twitter Command
Added Twitter command for Devs to post from discord
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package commands;
|
||||
|
||||
import core.Command;
|
||||
import dataStructures.*;
|
||||
import network.NetworkTwitter;
|
||||
|
||||
public class CommandTweet extends Command
|
||||
{
|
||||
NetworkTwitter tweet = new NetworkTwitter();
|
||||
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"; }
|
||||
|
||||
@Override
|
||||
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||
{
|
||||
try {
|
||||
res.Call(tweet.tweet(input.args));
|
||||
} catch (Exception e) {
|
||||
res.Call("FUCKED UP HARD");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user