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