Skip to content

Conversation

@robotzurg
Copy link
Collaborator

No description provided.

@robotzurg robotzurg requested a review from Casjb October 18, 2025 16:30
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldnt be renamed seeming as the timestamp already comes after the last one

import { client, getGuild } from '../client'
import { getSettings } from './queryDB'

const POOL_SIZE = 10 // Number of channels to keep in the pool
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can make these editable with a command for dynamic load handling

const guild = await getGuild()

console.log(`Creating ${channelsToCreate} channels for the pool...`)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will just get us rate limited - we should only create pool channels when there is less than x players in queue - add to pool when numbers are low, use pool when numbers are high

const settings = await getSettings()

// Set up permissions for match users
const permissionOverwrites = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

turn off message history (we need this for all match creation)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idk how to do this lol

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but then we dont need to delete all the messages nescessarily, which might help with rate limiting (?)

@robotzurg robotzurg merged commit 1c6884e into main Oct 18, 2025
@robotzurg robotzurg deleted the reserve-channels branch October 18, 2025 18:40
robotzurg added a commit that referenced this pull request Oct 18, 2025
…els"

This reverts commit 1c6884e, reversing
changes made to 4fde471.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants