972 Commits

Author SHA1 Message Date
Sheldan
089862bf15 added starboard functionality (starboard/starstats)
added module to store/retrieve configuration (double and string values)
replaced a few null values with optionals (emote loading)
fixed creating channels on startup
added delete message/get emote utility to bot service
extended emote service to have utility methods to use emotes
added reactions to message cache
added empty message handling to  post target service, in case the template evaluates to empty
added ability to edit a message in a post target (standard message and embed)
added principle of config listeners, so default config can be created, for example starboard thresholds
added abstract reaction listeners for adding/removing/clearing
fixed foreign keys between channel and server
added emote utils to handle AEmote and Emotes
renamed emotes to be camelCase, so they are easier to type
2020-04-01 14:16:04 +02:00
Sheldan
03e81a025b added scheduling support
added remind command
added support for parameters with spaces (they are contained by ")
fixed support for remainder parameters
added maxlength support for parameters
added ability to embed templates, to have a text as well
moved properties to a more appropriate position
added method do parse a duration
2020-03-28 20:12:59 +01:00
Sheldan
e0474a4c98 added simple embed support for embed links, fixed missing messageId in embed model 2020-03-24 20:55:48 +01:00
Sheldan
7d63f6b8af added some utility methods to bot service
reworked message cache to not be jda messages, but own objects: cachedMessages, jda messages should not be kept around
added listener to listen for message links, to represent them in an embed (or embeds)
added offsetDateTime handling for gson
introduced a way on how to handle async transaction handling for suggestions and message loading (self reference with another method with transactional)
added timestamp support to embeds
2020-03-24 20:36:36 +01:00
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
f416ac5d6b added command to set emotes to emote keys
added emote support to command parameters
2020-03-21 15:51:25 +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
Sheldan
167bbb0f8b added template support to echo
replaced HashMaps for templates with concrete models, so the interface is easier known
added rendering method for objects directly
added default parameters available for commands
split up service beans for server/channel into management and service bean
added server reference in AChannel
refactored join/leave listener
2020-03-17 19:41:25 +01:00
Sheldan
0521a1ab44 added templating support
changed ping command to use templates
added userjoin/userleave event
added guild to command context
refactored post target service
added logging output to initial loading
added server_id to postTarget
added leave log postTarget
2020-03-16 01:28:17 +01:00
Sheldan
5c6b7b9a78 added module responsible for accumulating the dependencies and resulting in a jar
added channels module
added help info object to command configuration
added description field to parameter
added modules for commands (and packed modules), they are mapped by name
added post command execution interface
added support for optional parameters
added support for using guildchannel as parameter
added printing of modules to help command
added service beans to wrap over the operations on the repository
added synchronizing of channels/roles on startup (controlled by flag)
added builder annotations to model classes
added more model classes
2019-12-12 16:47:54 +01:00
Sheldan
42cfe33b3a added initial version containing ping/echo command and first draft of the command handling structure 2019-12-09 23:50:24 +01:00
Sheldan
78a4d814ad Initial commit 2019-12-08 13:36:09 +01:00