This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.hopedev.testproj; | |
import me.hopedev.commandhandler.CommandBuilder; | |
import org.javacord.api.DiscordApi; | |
import org.javacord.api.DiscordApiBuilder; | |
public class Main { | |
public static void main(String[] args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.hopedev.hopeutils.requesting; | |
import com.squareup.okhttp.*; | |
public class MakeRequest { | |
private final String URL; | |
public static OkHttpClient client = new OkHttpClient(); | |
public static final MediaType JSON = MediaType.parse("application/json; charset=utf-8"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.normies.pepegalog.webhooking; | |
import com.sun.net.httpserver.HttpExchange; | |
import com.sun.net.httpserver.HttpHandler; | |
import org.javacord.api.entity.channel.ServerTextChannel; | |
import org.json.JSONObject; | |
import org.normies.pepegalog.Main; | |
import org.normies.pepegalog.utils.RequestManager; | |
import org.normies.pepegalog.utils.ResponseManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.normies.pepegalog.utils; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.Map; | |
public class Query { | |
private final String query; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GitHubContext implements HttpHandler { | |
@Override | |
public void handle(HttpExchange exchange) throws IOException { | |
RequestManager requestManager = new RequestManager(exchange); | |
ResponseManager responseManager = new ResponseManager(exchange); | |
System.out.println("Received!! hello!"); | |
JSONObject object = requestManager.asJson(); | |