diff --git a/docker-compose.yml b/docker-compose.yml index 6fc2281..258b1a1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: build: ./ # find docker file in designated path container_name: discord restart: always # rebuild container always - image: discord/bot:0.5.6 + image: discord/bot:0.5.7 environment: CLIENT_TOKEN: ${CLIENT_TOKEN} GUILD_ID: ${GUILD_ID} diff --git a/package-lock.json b/package-lock.json index 04a8bc1..e75fab6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "discord-ollama", - "version": "0.5.6", + "version": "0.5.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "discord-ollama", - "version": "0.5.6", + "version": "0.5.7", "license": "ISC", "dependencies": { "discord.js": "^14.15.3", diff --git a/package.json b/package.json index 1a63e5b..3522047 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discord-ollama", - "version": "0.5.6", + "version": "0.5.7", "description": "Ollama Integration into discord", "main": "build/index.js", "exports": "./build/index.js", diff --git a/src/commands/capacity.ts b/src/commands/capacity.ts index 9b568c5..a3c663d 100644 --- a/src/commands/capacity.ts +++ b/src/commands/capacity.ts @@ -20,7 +20,7 @@ export const Capacity: SlashCommand = { run: async (client: Client, interaction: CommandInteraction) => { // fetch channel and message const channel = await client.channels.fetch(interaction.channelId) - if (!channel || channel.type !== (ChannelType.PublicThread && ChannelType.GuildText)) return + if (!channel || channel.type !== (ChannelType.PrivateThread && ChannelType.PublicThread && ChannelType.GuildText)) return // set state of bot chat features openConfig(`${interaction.user.username}-config.json`, interaction.commandName, interaction.options.get('context-capacity')?.value) diff --git a/src/commands/channelToggle.ts b/src/commands/channelToggle.ts index 1e1aaa6..bd50f7e 100644 --- a/src/commands/channelToggle.ts +++ b/src/commands/channelToggle.ts @@ -20,8 +20,7 @@ export const ChannelToggle: SlashCommand = { run: async (client: Client, interaction: CommandInteraction) => { // fetch channel location const channel = await client.channels.fetch(interaction.channelId) - if (!channel || channel.type !== (ChannelType.PublicThread && ChannelType.GuildText)) return - + if (!channel || channel.type !== (ChannelType.PrivateThread && ChannelType.PublicThread && ChannelType.GuildText)) return // set state of bot channel preferences openConfig(`${interaction.guildId}-config.json`, interaction.commandName, interaction.options.get('toggle-channel')?.value) diff --git a/src/commands/messageStream.ts b/src/commands/messageStream.ts index fe3fe95..5239201 100644 --- a/src/commands/messageStream.ts +++ b/src/commands/messageStream.ts @@ -20,7 +20,7 @@ export const MessageStream: SlashCommand = { run: async (client: Client, interaction: CommandInteraction) => { // verify channel const channel = await client.channels.fetch(interaction.channelId) - if (!channel || channel.type !== (ChannelType.PublicThread && ChannelType.GuildText)) return + if (!channel || channel.type !== (ChannelType.PrivateThread && ChannelType.PublicThread && ChannelType.GuildText)) return // save value to json and write to it openConfig(`${interaction.user.username}-config.json`, interaction.commandName, interaction.options.get('stream')?.value) diff --git a/src/commands/messageStyle.ts b/src/commands/messageStyle.ts index c4204ed..1daec97 100644 --- a/src/commands/messageStyle.ts +++ b/src/commands/messageStyle.ts @@ -20,7 +20,7 @@ export const MessageStyle: SlashCommand = { run: async (client: Client, interaction: CommandInteraction) => { // fetch channel and message const channel = await client.channels.fetch(interaction.channelId) - if (!channel || channel.type !== (ChannelType.PublicThread && ChannelType.GuildText)) return + if (!channel || channel.type !== (ChannelType.PrivateThread && ChannelType.PublicThread && ChannelType.GuildText)) return // set the message style openConfig(`${interaction.user.username}-config.json`, interaction.commandName, interaction.options.get('embed')?.value)