chat bridge command fix lol AND chat box resizing!!!

This commit is contained in:
legop3
2026-06-07 22:27:34 -04:00
parent 45f7efa907
commit 031e23103f
7 changed files with 154 additions and 32 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -11,8 +11,8 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Roomba Rover" />
<title>Roomba Rover</title>
<script type="module" crossorigin src="/assets/index-BhkoVBkE.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BcnYeuah.css">
<script type="module" crossorigin src="/assets/index-BkTL8xYG.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Des_xuUP.css">
</head>
<body>
<div id="root"></div>
@@ -42,9 +42,15 @@ function createBridgeCommand({ getGuildConfig, setGuildConfig, removeGuildConfig
if (mode && !VALID_MODES.has(mode)) return message.reply({ content: 'Invalid mode. Use `global` or `private`.', allowedMentions: { parse: [], repliedUser: false } });
if (action === 'status') return message.reply({ content: status(getGuildConfig(guildId)), allowedMentions: { parse: [], repliedUser: false } });
if (action === 'off') { removeGuildConfig(guildId); return message.reply({ content: 'Chat bridge disabled for this server.', allowedMentions: { parse: [], repliedUser: false } }); }
// Every command below this point mutates the guild bridge configuration.
// Keeping the authorization check in one shared gate prevents destructive
// actions, especially `rs bridge off`, from accidentally bypassing the same
// Manage Server/admin requirement used by `here` and `mode`.
if (!canManageBridge(message)) return message.reply({ content: 'You need Manage Server permissions to change the chat bridge.', allowedMentions: { parse: [], repliedUser: false } });
if (action === 'off') { removeGuildConfig(guildId); return message.reply({ content: 'Chat bridge disabled for this server.', allowedMentions: { parse: [], repliedUser: false } }); }
if (action === 'here') {
try {
const entry = await ensureBridgeWebhook(message.channel, guildId);