fix: export
This commit is contained in:
@ -64,3 +64,5 @@ export const createLedClient = (_addr: string) => {
|
||||
|
||||
// export const twitchClient = createTwitchClient();
|
||||
// twitchClient.subscribeToFollow();
|
||||
//
|
||||
export const client = createLedClient("192.168.1.215");
|
||||
|
@ -1,8 +1,6 @@
|
||||
import { createLedClient } from "$lib";
|
||||
import { fail, type Actions } from "@sveltejs/kit";
|
||||
|
||||
export const client = createLedClient("192.168.1.215");
|
||||
|
||||
export const actions: Actions = {
|
||||
async default({ request }) {
|
||||
const data = await request.formData();
|
||||
|
@ -2,8 +2,7 @@ import { createHmac, timingSafeEqual } from "node:crypto";
|
||||
import type { RequestHandler } from "@sveltejs/kit";
|
||||
import { HASH_SECRET } from "$env/static/private";
|
||||
import { twitchFollowEvent } from "$lib/twitch";
|
||||
import { client } from "../../+page.server";
|
||||
|
||||
import { client } from "$lib";
|
||||
const getHmacMessage = (request: Request, body: string): string => {
|
||||
return (
|
||||
request.headers.get(TWITCH_MESSAGE_ID)! +
|
||||
|
Reference in New Issue
Block a user