{$t('admin.messaging')}

{#if loading}
{:else}
{#each bots as bot}
(editBot = bot)} onkeydown={() => {}} > {bot.name} toggleRunning(e, bot)} onkeydown={(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); toggleRunning(e, bot); } }} >
{/each} {#if bots.length === 0}

{$t('messaging.noBots')}

{/if}
{/if} {#if showCreate} (showCreate = false)} onsave={handleSaved} /> {/if} {#if editBot} (editBot = null)} onsave={handleSaved} /> {/if}