MarcTowler / discord-bot

BSD 2-Clause "Simplified" License
2 stars 0 forks source link

Auto Generate Help File #20

Closed MarcTowler closed 5 years ago

MarcTowler commented 5 years ago

Currently, help file is hard coded so needs to auto-generate it to make maintainance easier.

For this we could read all the files in the command folder and extract the help module from each file and generate the command list from there.

To save on speed and processing, we will need to run a "compile" function in the bots onStart event as file changes are not registered until the bot is rebooted currently anyway.

Also need to add a restriction tag on the help module for the lowest rank that is allowed to use the command so that members can see only commands that they are allowed, officers for officers and members, council for all

MarcTowler commented 5 years ago

Started working on this on stream but it was having a few issues

MarcTowler commented 5 years ago

Ok, fixed the issue, added rank checks, will upload this evening to complete

MarcTowler commented 5 years ago

fixed in latest dev branch, had to update all command files to include a role variable