- Returned "quote" commands to textual commands type
- Rewritten quote system backend to ensure stability
- Added new quote subcommands:
- `!quote search [keywords]` allow users to search for a quote using keywords, and returns the best match. If several equally good matches are found, returns one of them at random
- `!quote info [quote_id]` allows users to see more info about a given quote. Grants more information on Discord
- `!quote restore [quote_id]` allows users to restore a previously removed quote
- `!quote last/latest/newest` allows users to get the newest quote
- Added new quote features to Discord helpfile
- Moved database init to globals.init_db_conn
- Associated unlinked usernames now default to that of the other platform, appended with "({platform} unlinked)". This should ensure consistensy despite users not linking accounts in the UAL system
- Added time_since(start, end, format) function to easily get formatted time differences, eg. for execution time reporting
- Added "wfstl" and "wfetl" helper function under utility. Useful for debugging when a function starts and ends manually if needed.
- Minor tweaks, corrections, bugfixes
- Logging functionality has been centralised to 'globals.log'
This should allow easy log integration into subsystems without the need of passing the function everywhere *phew*
- added database table "users"
- table allows for assigning individual users a UUID for universal processing
- will support account linking in the future
- fixed a bug with reporting Discord commands in logs
- Ensured it fetches the correct commands and help configuration depending on platform.
- Removed certain duplicate checks that intiated functions twice or repeated value asignments.
- Added the @monitor_cmd flag to commands, allowing easy command runtime diagnostics, including execution time.
- Removed built-in Discord !help command
NOTE:
Basic implementation.
Help text is defined in:
- dictionary/help_twitch.json
- dictionary/help_discord.json
- Looks up a file in the "dictionary" folder
- Returns a random category string within that file
- Added proper start time fetching through globals.get_bot_start_time()