- Apr 23, 2022
-
-
JordanPlayz158 authored
- Kind of like Audit Logs but only for messages and is put in the current channel, used to ensure transparency and order of messages
-
- Oct 10, 2021
-
-
JordanPlayz158 authored
-
- Jul 01, 2021
-
-
Jordan Adams authored
- pom.xml added WarnPlugin as dependency as UnwarnPlugin just removes entries from the warn hashmap as WarnPlugin already handles the saving, making the Warn objects, etc. (No need to recode the same system in UnwarnPlugin) - Updated plugin.yml to depend on Warn (added to the list of strings (plugin names) for depend tag - Changed extends Plugin to extends JavaPlugin and moved class constructor code to onEnable (for new system) - Updated code in UnwarnCommand to get the staff role from warns config (rather than placeholder config code), void changed to boolean in onCommand for new system (explained in previous commits), grabbing warns map from WarnPlugin and modifying it for remove warn functionality
-
Jordan Adams authored
- New System, changed from Plugin to JavaPlugin so WarnPlugin now extends JavaPlugin - Warn added @Getter tag for retrieving the values stored in the object - Updated checking if map has updated logic (realized how flawed getting the size of the hashmap was and hashcode should be reliable)
-
Jordan Adams authored
-
Jordan Adams authored
- Added config.yml so the role the member receives on join can be configurable - Made Config for ObjectMapper and easy value grabbing - Changed from long to config reference in MemberJoinListener (only had long there so the code would compile) - Making the data directory, copying over and reading the config file in RoleOnMemberJoinPlugin (need to find a more "catchy" name for this plugin lol)
-
Jordan Adams authored
- Changed onCommand method in commands from void to boolean to work with the new system. (return false to signify command did work correctly (or preconditions not met) and a usage embed will be sent in the channel the command was used in, return true to indicate command worked correctly and nothing will happen) - Changed Plugin to JavaPlugin (so extends Plugin changed to JavaPlugin) and moved everything from the class constructor to the onEnable method
-
- Jun 30, 2021
-
-
Jordan Adams authored
- Removed unused imports
-
Jordan Adams authored
-
Jordan Adams authored
- Added gson dependency as JModularBot no longer has it as a dependency (switched all configs to yml) - Packing runs maven-shade-plugin to package the jar with gson dependency - Added config.yml for configurable staffRole that has permission to use the warn command. Has autosave variable for configuring how long between saving warns to file. - Config made for easy accessing, saving, and loading data from. - SaveWarns made for the task of saving warns to a file with a repeating timer task - Warn made for storing and accessing the warns (mainly for saving the warns to file) - WarnCommand updated for new onCommand system, class constructor code added for loading warns file, utilized new onCommand system to reduce amount of code, improved readability (getReason method), Added code for adding warn entries to map - WarnPlugin updated for new onEnable, onDisable system, added code for saving and loading the config file and creating the warns file, initiate saveWarns repeating task with autosave value from config, before disabling plugin, run then cancel the SaveWarns task (for saving the warns data before unloading (otherwise the warn data could be lost if the last warn wasn't 5 minutes ago))
-
Jordan Adams authored
-
Jordan Adams authored
- Added config.yml for MutePlugin functionality to actually work (configurable mute role (defined by id) and staff role (who can use the mute command)) - Made Config class for easy value retrieving from config.yml - Edited the MuteCommand class for the new system. onCommand returns boolean and not void. Returning false tells CommandHandler to send the usage message in the channel the command was executed, true does nothing (means the command executed correctly) (inspired by (*ahem* stolen from *ahem*) bukkit (like most of the bots design)) - Updated MutePlugin for new system, executing code on onEnable and onDisable rather than class constructor. Added code to copy and load the config.
-
Jordan Adams authored
Updated parent.pom.xml to add JModularBot dependency scope tag and set it to provided so when using maven-shade-plugin, it won't include the dependency in the jar (as it's already provided)
-
Jordan Adams authored
-
- Jun 28, 2021
-
-
JordanPlayz158 authored
-
JordanPlayz158 authored
-
Jordan Adams authored
Added proper packaging line for maven package to run
-
Jordan Adams authored
Added pom.xml to compile all plugins with 1 button
-
Jordan Adams authored
-
Jordan Adams authored
-
Jordan Adams authored
-
Jordan Adams authored
-
Jordan Adams authored
-
Jordan Adams authored
- Optimized code and improved readability
-
Jordan Adams authored
-
Jordan Adams authored
- Optimized code and improved readability
-
Jordan Adams authored
-
Jordan Adams authored
KickCommand: - Command for kicking a member from a guild KickPlugin: - Registers ReadyListener - Sets instance to current instance plugin.yml: - Contains information for initializing the plugin pom.xml: - Sets java version to 16 - Allows files in resources to reference maven pom.xml variables - Adds JModularBot as a dependency ReadyListener: - Registers KickCommand to the CommandManager
-