Assaro / DD_Bot

Discord Bot to Control Docker Services via the Docker Socket
GNU General Public License v3.0
35 stars 6 forks source link

AllowedContainers not working as expected #38

Open GBHU753 opened 2 hours ago

GBHU753 commented 2 hours ago

Describe the bug I could not get the AllowedContainers option to work for user assigned in the UserIDs array

To Reproduce Steps to reproduce the behavior:

  1. Run docker ps --format "{{.Names}}" to get the name of the container
  2. Add the name as a string to the AllowedContainers array

Expected behavior I expected that when /list is ran by a user the container would show

Screenshots N/A

Additional context I also tried the containers ID this did not work either

Assaro commented 1 hour ago

Odd. I will have to check that. Do the containers appear in the list when someone that has admin privileges uses the command? It should do it then.

If not, does the docker start/stop command work for you?

Assaro commented 1 hour ago

Nvm, i misread what you did. The allowedContainers variable is deprecated. Don't use that anymore. There are commands you can use to grant access to a user or a role on your discord. they are /role and /user