Skip to content

Commit

Permalink
eeehhhhhhhh
Browse files Browse the repository at this point in the history
  • Loading branch information
mishl-dev committed Apr 8, 2024
1 parent e87a759 commit 5e0ab90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ import { ChannelType, Message } from "npm:discord.js";

const db = await Deno.openKv("./db.sqlite");

function splitResponse(response: string, chunkSize: number = 1999): string[] {
const lines: string[] = response.split("\n");
function splitStringIntoChunks(inputString: string, chunkSize: number = 1999): string[] {
const lines: string[] = inputString.split("\n");
const chunks: string[] = [];
let currentChunk: string = "";

Expand Down

0 comments on commit 5e0ab90

Please sign in to comment.