Skip to content

Commit

Permalink
Fixed Header
Browse files Browse the repository at this point in the history
  • Loading branch information
Rabenherz112 committed Apr 2, 2023
1 parent 830d048 commit 24cced6
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions functions/util_checkReddit.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ const { EmbedBuilder } = require("discord.js");
const { ChannelType } = require("discord-api-types/v10");
const { decode } = require("html-entities");

async function getSubredditData() {
// Generate User Agent for Reddit API
let headers = new Headers(
{
"User-Agent": `GameyBot/${Math.floor(Math.random() * 1000)}.0`,
"Accept": "application/json",
"Content-Type": "application/json",
}
);
// Generate User Agent for Reddit API
let headers = new Headers({
"User-Agent": `GameyBot/${Math.floor(Math.random() * 1000)}.0`,
"Accept": "application/json",
"Content-Type": "application/json",
});

async function getSubredditData() {
// Health Check
let response = await fetch("https://www.reddit.com/new.json", {
method: "GET",
Expand Down

0 comments on commit 24cced6

Please sign in to comment.