Skip to content

Releases: sedders123/phial

0.12.2

08 Feb 02:02
Compare
Choose a tag to compare

Fixed

  • Fixed offset-naive datetime error when using the Schedule class

0.12.1

08 Feb 01:48
Compare
Choose a tag to compare

Fixed

  • Fixed config requiring a 'hotReload' key, despite this not currently being a feature

0.12.0

08 Feb 00:57
Compare
Choose a tag to compare

Changed

  • All optional parameters are now keyword only arguments

0.11.1

07 Feb 22:10
Compare
Choose a tag to compare

Fixed

  • Commands that are wrapped with a functools.wrap decorator no longer fail parameter validation

0.11.0

07 Feb 14:50
Compare
Choose a tag to compare
  • Upgrade to use slack_sdk and Socket Mode. This is a breaking change and will require you to update your code to use the new API.
  • Remove hot reload functionality. This may be re-added in a future release.

Version 0.10.1

04 Oct 15:09
0eb7e72
Compare
Choose a tag to compare

Fixed

  • Fixed default arguments in commands not being overridable.

Version 0.10.0

13 Sep 21:48
d5276c2
Compare
Choose a tag to compare

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 to 1 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 values True and False. Defaults to False)
  • 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

19 Jun 08:11
806223d
Compare
Choose a tag to compare

Fixed

  • Error when phial logged an error

Version 0.9.0

31 May 20:21
3674120
Compare
Choose a tag to compare

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 uses logging.getLogger(__name__) all the time.

Version 0.8.3

02 May 17:46
Compare
Choose a tag to compare

Changed

  • Restrict python-slackclient support the 1.x series