cheesits456 / discord-ssh-bot

A node.js Discord bot for using shell commands remotely through Discord
GNU General Public License v3.0
35 stars 9 forks source link

Allow multiple users access #21

Open cheesits456 opened 3 years ago

cheesits456 commented 3 years ago

Discussed in https://github.com/cheesits456/discord-ssh-bot/discussions/17

Originally posted by **BeltoAlex** April 30, 2021 Is there a way that I can allow multiple users to type commands into the channel? Right now the other users can access the text channel and type messages into it, but the bot doesn't recognize their commands. Could i add multiple ids to 'owner' in the config, or some new field to list their ids?
Grim-reap3r commented 2 years ago

Hello.

Any update on that ?

NachoPicchu commented 1 year ago

@Grim-reap3r If you're feeling particularly brave, you can remove line 61 (process.exit();) and the "&& msg.author === client.config.owner" part of line 45 of the script.js script. This will make the script accept commands from any discord user with access to the specified channel. Be advised that at the very least you should be very conservative with managing discord access to the channel you specify. A "more secure" solution might be using a different (selfhosted/private) bot that sends predetermined text messages when reacted to and specifying that bots ID in config.js.