Commit Graph

12 Commits

Author SHA1 Message Date
Sheldan
8cd9068cfc added error message logging to reaction post execution
added validation to post target command
added templates for post target command
moved ping and echo model to interface
added show emote command
2020-03-22 12:34:52 +01:00
Sheldan
d95382b589 added mechanism to dynamically load properties defining postTargets and valid emoteNames
changed the output of the exception message
refactored emote management service
added service to define whether or not an emote is usable by the bot
2020-03-22 10:26:58 +01:00
Sheldan
9e9eb615c0 added dynamic post target loading
fixed some templates of commands
added fat jar maven config
2020-03-21 18:39:46 +01:00
Sheldan
df0c156743 added utility module
added ability to create/accept/reject suggestions them
made commands async, because a lot of operations behave like that
in case the database is needed in an async operation, this needs to be in a separate transactional service
fixed ordering of Long parameters (server > channel > message)
added initial emote handling (no adding of emotes yet)
fixed creation of AUserInAServer, in case the user did not exist yet, when loading
changed PostTargetService to return Futures instead of being a void, in order to be able to act on the message posted
set logging level to debug
fixed help for different commands (templates had wrong naming)
2020-03-21 14:31:59 +01:00
Sheldan
d3a9a7a9f0 added embed support fo message deleted and message edited
added attachment support for message deleted
added imageUrl support to embed templating
2020-03-20 21:20:14 +01:00
Sheldan
ff29edbdac added logging of message deleted 2020-03-20 19:57:19 +01:00
Sheldan
35f976aaa4 added message caching
added message edited log (simple)
2020-03-20 18:48:20 +01:00
Sheldan
9b7f0743fc upgraded spring boot starter version
added gson dependency
added logging the exception in the exception post executor
added configuration exception in case the configuration for posttargets is not correct
added support to send embeds to posttargets
changed interface to be a warnlog instead of a server context for warning users, because the template
changed freemarker Incompatible Improvements to support default methods in interfaces
added ability to define embed configurations to be used, in order for a template to only be configurable as a template
changed template content size to 4000 characters
2020-03-20 16:06:19 +01:00
Sheldan
c978c1c677 changed context handling for command models for logging
added method to convert the user initiated context to a concrete command model
added method to find if a template exists
added method to render a context aware model
added banid command
2020-03-20 09:34:37 +01:00
Sheldan
ec21305725 added conventions for templated commands, to reduce the amount of necessary configuration
added an exception, in case the command was missing the correct types of parameters (channel is required, no channel was found)
added fix text to exception handler, in case the message of an exception is null
fixed off-by-one error when searching the missing parameter
changed supported chanel from guildChannel to textChannel for posttarget
added slowmode command
2020-03-18 21:06:27 +01:00
Sheldan
9119d57108 added kick command, made ban reason optional 2020-03-18 19:25:49 +01:00
Sheldan
bd848d31d3 added warn and ban command
changed command context to be a member instead of user, commands are only supported within guilds
added custom exception templating for the error message
added error message in case the parameters for a command were too little
added support for templates on command help descriptions
added post execution to be executed to print exception messages
refactored command handling to be able to support exceptions
added user and userInServer management
2020-03-18 18:21:06 +01:00