Skip to content

Commit

Permalink
fix: adjust linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jerdog committed Dec 7, 2024
1 parent b57cb2a commit 68ec491
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions worker.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
// Import only the necessary functions
import { main, debug, getBlueskyAuth } from './bot.js';
import { uploadSourceTweetsFromText, getTweetCount } from './kv.js';
import { handleMastodonReply, handleBlueskyReply, generateReply, initializeKV, loadRecentPostsFromKV } from './replies.js';
import {
handleMastodonReply,
handleBlueskyReply,
generateReply,
initializeKV,
loadRecentPostsFromKV,
fetchPostContent
} from './replies.js';

// Create a global process.env if it doesn't exist
if (typeof process === 'undefined' || typeof process.env === 'undefined') {
Expand Down Expand Up @@ -163,7 +170,7 @@ async function checkNotifications(env) {
}

// Helper function to get Mastodon notifications
async function getMastodonNotifications(env) {
async function getMastodonNotifications(_env) {
try {
const mastodonResponse = await fetch(`${process.env.MASTODON_API_URL}/api/v1/notifications?types[]=mention`, {
headers: {
Expand Down Expand Up @@ -197,7 +204,7 @@ async function getMastodonNotifications(env) {
}

// Helper function to get Bluesky notifications
async function getBlueskyNotifications(env) {
async function getBlueskyNotifications(_env) {
try {
// Get Bluesky auth
const auth = await getBlueskyAuth();
Expand Down

0 comments on commit 68ec491

Please sign in to comment.