Closed fredtsun closed 3 years ago
The permissions for this is based in the .env file. It looks for the key: PREFIX_CHANGE_ROLES. I.e.
.env
PREFIX_CHANGE_ROLES
PREFIX_CHANGE_ROLES=Admin1
The values for this can be presented as a comma separated string if multiple roles are needed. i.e.
PREFIX_CHANGE_ROLES=Admin1,Admin2,Admin3
Tested this locally:
$narwhalPrefix ~
You may now speak to me using ~
~narwhalPrefix $
You may now speak to me using $
You do not have permissions to change this.
Addresses #5
Also, it would make sense to merge #9 before this!
The permissions for this is based in the
.env
file. It looks for the key:PREFIX_CHANGE_ROLES
. I.e.The values for this can be presented as a comma separated string if multiple roles are needed. i.e.
Tested this locally:
$narwhalPrefix ~
results in bot responding:You may now speak to me using ~
$narwhalPrefix ~
results in no message.~narwhalPrefix $
results in bot responding:You may now speak to me using $
$narwhalPrefix ~
results in bot responding:You do not have permissions to change this.