Adjust Discord publication and lobby capacity defaults
CI / checks (push) Failing after 7m21s

This commit is contained in:
2026-10-18 17:23:50 -04:00
parent fd00ef5357
commit d715173719
15 changed files with 304 additions and 89 deletions
+3 -3
View File
@@ -42,7 +42,7 @@ beforeEach(() => {
enabled: true,
guildId,
channels: { t5: channelId, t6: '' },
publishedServers: ['kino']
excludedServers: []
});
server = {
name: 'kino',
@@ -68,7 +68,7 @@ function worker(rest: DiscordTransport, render = () => [message('Public board')]
return new DiscordWorker({
store,
transport: () => rest,
fleet: (settings) => (settings.publishedServers.includes(server.name) ? [server] : []),
fleet: (settings) => (!settings.excludedServers.includes(server.name) ? [server] : []),
render,
now: () => now
});
@@ -337,7 +337,7 @@ describe('Discord one-time availability notifications', () => {
const watch = store.subscribe(watchInput);
const { rest, request } = transport((method, path) => {
if (path === '/users/@me/channels')
store.saveSettings({ ...store.settings(), publishedServers: [] });
store.saveSettings({ ...store.settings(), excludedServers: [server.name] });
});
const instance = worker(rest, () => []);
await instance.tick();