Shutoff slash command only accessible to admin users specified in the environment file .env.
toggle-chat has been implemented to work now when disabled, it will notify the user to reach out to admins to re-enable the discord bot if something happened.
Notes
Multiple admins can be set in the .env as a list/array of usernames of discord users. It would be nice to detect who are the admins in the server (essentially people who have Administrator roles in the servers to use the slash command rather than the environment file. Will probably create an issue for this.
Added
.env
.toggle-chat
has been implemented to work now when disabled, it will notify the user to reach out to admins to re-enable the discord bot if something happened.Notes
.env
as a list/array of usernames of discord users. It would be nice to detect who are the admins in the server (essentially people who have Administrator roles in the servers to use the slash command rather than the environment file. Will probably create an issue for this.