Skip to content

Releases: seenashafai/jeffbot-v3

Production Release

12 Aug 10:38
836769e
Compare
Choose a tag to compare

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.

Server Release

06 Aug 20:05
c35c2df
Compare
Choose a tag to compare
Server Release Pre-release
Pre-release

This release includes the code for uploading JeffBot to a server for 24/7 uptime. Includes code for a supporting website, with a bot invite code to add your bot to any server you manage.

Server files are collected into 'Server Deployment Package' consisting of:

[REQUIRED] server.js: the app.js equivalent for the local version of the bot
[OPTIONAL] client,js: the server side javascript code supporting the website for the bot
[OPTIONAL] index.html: the HTML code for designing the markup of the bot's website
[OPTIONAL] style.css: the CSS code for designing the style of the bot's website

[NOT REQUIRED] watch.json: JSON code designed to prevent certain server providers from unintentionally going over Discord's maximum requests per day, thus resetting the bot's token. Use of this file will mean that your bot will only update every 15 minutes unless otherwise forced.

Local Host Initial Release

05 Aug 00:25
Compare
Choose a tag to compare
Pre-release

Initial release of JeffBot
Default prefix: ">"
Contains support for basic 'Ping Pong'

Functionality to delete a message when sent by a user of a certain Role ID, and replace the message with 'jeff' for each word of the original message.

This functionality can be used as a moderation feature- instead of muting someone, instead assign them the relevant role and all their messages are turned into Jeffs