Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Commit

Permalink
[-] remove debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
NekoCurit committed Feb 22, 2024
1 parent 4135de0 commit 8a72690
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public DiscordListener(UniversalEventListener handle, UniversalEventListenerConf
}
@Override
public void onUserStartTyping(UserStartTypingEvent event) {
System.out.println(event.getChannel().getIdAsString());
if (handle == null) { return; }
if (!Objects.equals(event.getChannel().asServerChannel().isPresent() ? event.getChannel().asServerChannel().get().getIdAsString() : null , config.filterServerID)) { return; }
if (!Objects.equals(event.getUserIdAsString(), config.filterUserID)) { return; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ public void blockFriend(String id) throws Exception {
JSONObject json = new JSONObject();
json.put("type", 2);
requests.put("https://discord.com/api/v9/users/@me/relationships/" + id, JSON.toJSONString(json));
System.out.println("block friend: [ID:" + id + "]");
}

public void changeAvatar(String avatar) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public Object get(String api) throws Exception {
return responseHandle(getHttpClient(), request);
}
public Object post(String api, String json) throws Exception {
System.out.println(json);
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(api))
.header("User-Agent", userAgent)
Expand Down Expand Up @@ -82,7 +81,6 @@ public Object patch(String api, String json) throws Exception {

private Object responseHandle(HttpClient client, HttpRequest request) throws java.io.IOException, InterruptedException, InvalidRequestBodyException, InvalidTokenException {
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString(StandardCharsets.UTF_8));
System.out.println(response.body());
switch (response.statusCode()) {
case 400:
throw new InvalidRequestBodyException();
Expand Down

0 comments on commit 8a72690

Please sign in to comment.