AoiTelegram@0.3.0
Added
- Added a text error when using internal library functions (only when an error occurs)
- Added parsing of the
\nsymbol - Added the
disableFunctionsparameter to theAoiClientclass constructor, which disables the loading of the specified functions from the library - Added the
functionErrorparameter to theAoiClientclass constructor the error handler is enabled when an error occurs in the library functions - Added the
functionErrorCommandmethod to the<AoiClient>class for tracking - Added the
varReplaceOptionparameter to theAoiClientclass constructor, which adds parsing of local variables in the following syntax:&localVar& - Added the
sendMessageErrorparameter to theAoiClientclass constructor, which disables text errors - Added methods for database events
<AoiClient>.variableDeleteCommand,<AoiClient>.variableUpdateCommand,<AoiClient>.variableCreateCommand(for the event loadersvariableCreate,variableUpdate,variableDelete) - Added the ability to specify types through
...typein the<Context>.checkArgumentTypesmethod. The subsequent types of arguments must match the specified type...number(it is not possible to specify["...string", "number"]!) - Added the
<Context>.getAoiArgsmethod, which returns parameters in custom functions as inaoi.js - Added the
<Context>.setStoppingmethod to stop the execution of further code
Updated
- The parameter in the
AoiClientconstructor has been renamed fromaoiwarningtoaoiWarning database-sempaihas been replaced with@aoitelegram/database- Empty values are now treated as
undefined - Error names have been changed for more accurate identification
- The parsing for
conditionparameters has been changed (you can now use&&and||) - Parameters where milliseconds had to be specified have been changed. Now you can only specify the time in the form of a string:
1h,1m, etc. - The loading of library functions and the execution of
command,action,timeouthave been slightly accelerated - For each function in the library, it is now indicated exactly what error occurred. In 0.2.1, this was automatically indicated, but when using multiple functions, the error was displayed for the wrong function.
- Event typing has been improved
Fixes
- The parsing of the
objecttype in the<Context>.checkArgumentTypesmethod has been fixed
Deleted
- The parsing of the operators
==,>=,<=,>,<,!=has been removed
AoiTelegram Function
- Added/changed/renamed many functions