@@ -1,7 +1,8 @@
package com.jhobot.commands.handle;
package com.jhobot.handle;

import sx.blah.discord.api.internal.json.objects.EmbedObject;
import sx.blah.discord.handle.obj.IChannel;
import sx.blah.discord.util.EmbedBuilder;
import sx.blah.discord.util.RequestBuffer;

public class Messages
@@ -25,4 +26,15 @@ public void sendEmbed(EmbedObject e)
channel.sendMessage(e);
});
}

public void sendError(String error)
{
EmbedBuilder b = new EmbedBuilder();
b.withTitle("Error");
b.withDesc(error);
b.withFooterText(Util.getTimeStamp());
RequestBuffer.request(() -> {
channel.sendMessage(b.build());
});
}
}
@@ -0,0 +1,11 @@
package com.jhobot.handle;

import sx.blah.discord.handle.obj.IGuild;

public class SQL
{
public static String get(IGuild guild, String object)
{
return null; // TODO do stuff
}
}
@@ -0,0 +1,12 @@
package com.jhobot.handle;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Util
{
public static String getTimeStamp()
{
return new SimpleDateFormat("[MM/dd/yyyy: HH:mm]").format(Calendar.getInstance().getTime());
}
}
@@ -1,4 +1,4 @@
package com.jhobot.commands.handle;
package com.jhobot.obj;

import sx.blah.discord.handle.impl.events.guild.channel.message.MessageReceivedEvent;