Initial implementation of python client with socket.io IPC

This commit is contained in:
Logan Cusano
2024-04-03 02:24:21 -04:00
parent be5943e9d4
commit c78ed89707
11 changed files with 1022 additions and 308 deletions

View File

@@ -25,6 +25,8 @@ export async function autocomplete(nodeIo, interaction) {
const focusedValue = interaction.options.getFocused();
const choices = (await checkOnlineBotsInGuild(nodeIo, interaction.guild.id));
console.log(choices);
const filtered = choices.filter(choice => choice.name.startsWith(focusedValue)).map(choice => choice = {name: choice.name, value: choice.nuid});
console.log(focusedValue, choices, filtered);