Releases: sedders123/phial
Releases · sedders123/phial
Version 0.10.1
Fixed
- Fixed default arguments in commands not being overridable.
Version 0.10.0
Added
- Concurrent commands and jobs. Command and jobs now run concurrently by default. You can modify the maximum number of concurrent events using the
maxThreads
property on the config object, by default its value is 4. To opt out of this feature you can set the value of the config key to1
and the old synchronous behaviour will remain. - Hot reload functionality. If phial detects a file has changed it will reload the file and restart the bot. Enable this using the
hotReload
key in the phial config (Valid valuesTrue
andFalse
. Defaults toFalse
) - Type hint validation. If you use inline type hints to specify the type of a command's parameter phial will now validate the user's input and convert it to the specified type. for use in your command function.
Changed
- Scheduled jobs now will reschedule if the job's function errors.
Removed
- Python 3.5 support
Version 0.9.1
Fixed
- Error when phial logged an error
Version 0.9.0
Added
- Added 'loopDelay' config option. Specifies how to long to sleep for in the main loop, this helps to prevent super high CPU usage while phial is doing nothing. Defaults to 0.001
- Added
hide_from_help_command
argument to command creation. This hides the command from the list generated by inbuilt help command.
Changed
- Python 3.6.1 is now marked as incompatible due to an issue with the
NoReturn
type
Deprecated
- Deprecated Python 3.5 Support. This is intended to be the last phial release to support Python 3.5
Removed
- Removed the optional
logger
paramater when constructing Phial instance. Now useslogging.getLogger(__name__)
all the time.
Version 0.8.3
Changed
- Restrict python-slackclient support the 1.x series
Version 0.8.2
Changed
- Project Metadata
Version 0.8.1
Changed
- Project Metadata
Version 0.8.0
phial has undergone a major internal rewrite and while the public API has largely stayed the same this version should not be seen as a drop in replacement.
Added
__version__
module attribute to be PEP 396 compliant
Changed
- Set minimum Python version to 3.5 (this has been the case since 0.3.0).
- The global
command
variable is now of typeMessage
.
Removed
- MessageAttachment and MessageAttachmentField classes. Message attachments can still be sent by using dictionaries that match the JSON that Slack expects.
Version 0.7.1
Changed
- Allow consumers of the package to use phial's type hints
Version 0.7.0
Added
- Add
team
attribute toMessage
andCommand
models. This stores the ID of the Slack Team that the call originated from.
Changed
- Allow configuration to be partially updated (@RealOrangeOne in #81)