Skip to content

Production Release

Latest
Compare
Choose a tag to compare
@seenashafai seenashafai released this 12 Aug 10:38
· 1 commit to master since this release
836769e

This release is the first to be ready for production use.

Required modules: date & fs - Both required for logging functionality

Optional modules: express- used for website hosting with the server edition if provider allows

Upgraded Permissions: Anyone with role 'Jeffinator' may use JeffBot to 'Jefficate' others- meaning that all their words in chat will be replaced with the word Jeff- akin to a mute function where the targeted user is unable to chat in any channel.

People who are not 'Jeffinators' may not 'Jefficate' others, and similarly people who have been 'Jefficated' may not 'Unjefficate' themselves. All of this part of the code has been explained with comments.

Logging: Most commands now are linked to a logging function which outputs details of the user initiating the command, as well as the user being affected by the command in a file named 'log.log'. Make sure the program has access to this file, otherwise you will see errors.

Rich Embed: Discord's rich embed feature has been used to create a help printout in the chat. Information about how this has been done in the code has been commented in.

The server files use the express module installed with npm package manager to allow hosting a website for the bot alongside the hosting of the bot itself- this functionality will depend on your hosting provider. glitch.com allows for the website and bot hosting functionality- I recommend you take a look.