Minor changes

This commit is contained in:
Tom 2025-01-07 15:55:49 +00:00
parent 6847ea6c9d
commit dc4f9f6bfb
3 changed files with 50 additions and 18 deletions

View File

@ -3,10 +3,11 @@ import { NextResponse } from "next/server";
export async function GET(req: Request) {
return NextResponse.json({
major_version: 4,
minor_version: 3,
download: "https://drive.proton.me/urls/YH86153EWM#W6VTyaoAVHKP",
changelog: "Reconnecting should be fixed.\nNew TTS messages when queue is empty will be played faster, up to 200 ms.\nRemoved subscriptions errors when reconnecting on Twitch\nAdded !refresh connections"
minor_version: 5,
download: "https://drive.proton.me/urls/7JMTHDQ7VM#6h85HeLaxXgr",
changelog: "Added Veadotube integration.\nFixed voice changes via redemptions.\nMessages in queue for longer than a minute will be skipped automatically."
//changelog: "Reconnecting should be fixed.\nNew TTS messages when queue is empty will be played faster, up to 200 ms.\nRemoved subscriptions errors when reconnecting on Twitch\nAdded !refresh connections"
//changelog: "When using multiple voices (ex: brian: hello amy: world), TTS messages are now merged as a single TTS message.\nNightbot integration\nTwitch authentication changed. Need to refresh connection every 30-60 days.\nFixed raid spam, probably."
//changelog: "Added raid spam prevention (lasts 30 seconds; works on joined chats as well).\nAdded permission check for chat messages with bits."
//changelog: "Fixed group permissions.\nRemoved default permissions.\nSome commands may have additional permission requirements, which are more strict.\nAdded support for redeemable actions via adbreak, follow, subscription.\nMessage deletion and bans automatically remove TTS messages from queue and playing.\nAdded support to read TTS from multiple chats via !tts join.\nFixed some reconnection problems."

View File

@ -2,6 +2,19 @@
const nextConfig = {
reactStrictMode: false,
output: 'standalone',
headers: async () => {
return [
{
source: "/api/:path*",
headers: [
{ key: "Access-Control-Allow-Credentials", value: "true" },
{ key: "Access-Control-Allow-Origin", value: "*" }, // replace this your actual origin
{ key: "Access-Control-Allow-Methods", value: "GET,DELETE,PATCH,POST,PUT" },
{ key: "Access-Control-Allow-Headers", value: "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" },
]
}
]
}
}
module.exports = nextConfig

View File

@ -44,6 +44,7 @@ model User {
groups Group[]
chatterGroups ChatterGroup[]
groupPermissions GroupPermission[]
GroupPermissionPolicy GroupPermissionPolicy[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@ -223,6 +224,20 @@ model GroupPermission {
@@index([userId])
}
model GroupPermissionPolicy {
id String @id @default(uuid()) @db.Uuid
userId String
groupId String @db.Uuid
path String
count Int
timespan Int
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
@@unique([userId, groupId, path])
@@index([userId])
}
model Chatter {
id BigInt
name String
@ -273,6 +288,9 @@ enum ActionType {
NIGHTBOT_CLEAR_PLAYLIST
NIGHTBOT_CLEAR_QUEUE
TWITCH_OAUTH
VEADOTUBE_SET_STATE
VEADOTUBE_PUSH_STATE
VEADOTUBE_POP_STATE
}
model Action {