Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Pdzly committed Aug 14, 2024
1 parent 25f1adc commit 0b1a062
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 65 deletions.
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ async function start() {
});

client.setHeaders({
"User-Agent": "rooki-bot",
Authorization: `Bearer ${results.jwt}`,
});

Expand Down
32 changes: 0 additions & 32 deletions src/models/personMentionViewModel.ts

This file was deleted.

29 changes: 0 additions & 29 deletions src/models/postViewModel.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/services/communityService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export default class CommunityService {
if (!force && this.userCache[data.name])
return this.userCache[data.name];
const user = await client.getPersonDetails({
auth: getAuth(),
username: data.name,
});
const now = new Date().getTime();
Expand All @@ -44,7 +43,6 @@ export default class CommunityService {
} else {
if (!force && this.userCache[data.id]) return this.userCache[data.id];
const user = await client.getPersonDetails({
auth: getAuth(),
person_id: data.id,
});
const now = new Date().getTime();
Expand Down Expand Up @@ -74,7 +72,6 @@ export default class CommunityService {
if (!force && this.communityCache[data.name])
return this.communityCache[data.name];
const community = await client.getCommunity({
auth: getAuth(),
name: data.name,
});
const now = new Date().getTime();
Expand All @@ -86,7 +83,6 @@ export default class CommunityService {
if (!force && this.communityCache[data.id])
return this.communityCache[data.id];
const community = await client.getCommunity({
auth: getAuth(),
id: data.id,
});
const now = new Date().getTime();
Expand Down

0 comments on commit 0b1a062

Please sign in to comment.