Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Fixed trigger change method | 69251e3588123264763e72e0d75e24f6efabac21 | Detche | 2016-12-01 15:36:51 |
Reverted to Python 3.4 asyncio syntax. | 43f7209ba91a14f6e6ac1f9727542c2184660399 | Detche | 2016-12-01 15:05:40 |
Fixed reaction on discord reactions. | 8ee16b5e61d096d1905643cec4da05e7714ed75c | Detche | 2016-11-29 16:41:56 |
Fixed log error on leave(). | cde179a63badbfdfd17a345886214e1d2b0a1e54 | Detche | 2016-11-29 15:44:53 |
Bot now prints in a log file if given at initialization | e13bd3dbb86d1bb6f072f751412e89d444d870f3 | Detche | 2016-11-29 15:38:18 |
Updated example. | e95d1599676ae10b950b2c069e666060005627cf | Detche | 2016-11-13 19:52:41 |
Added scheduler to task core. Modified comm for new event. | ed51d5d18684dabdb17675294727ad5e8b8af454 | Detche | 2016-11-13 19:44:05 |
Started adding possibility to save in database. | cf28a7731335cd1ffd2ebd03cc2e890c25e1c64b | Detche | 2016-11-13 19:43:21 |
Changed db interface and users/groups models. | d0fdf8873a107c44d6acbef5cbffc869461d9aab | Detche | 2016-11-03 15:22:10 |
Changed UserId from element to attribute. | 5407592cba9e7488519e069927a8ffb9ed32fdf6 | Detche | 2016-11-02 15:02:30 |
Added tasks system. | 13bbf9857a0a61d5e2b0fd9483f5efd235cbd4f2 | Detche | 2016-11-02 14:58:20 |
Modified Knowledge process. Fixed indent | 28e52095a297cbb0e6b9b6d799bb80ebe52828c1 | Detche | 2016-10-23 12:11:30 |
Updated README | 8e298151286ec3cb4df29633aaca90fc871f2e80 | Detche | 2016-10-23 10:10:45 |
Update README.rst | 7965df28cbef557fd3819919b4d44f0733dcecf0 | Guillaume | 2016-10-23 00:06:05 |
Added README page | 8339ac5b13803b026dbfc5edd77fa50a24a70ecb | Detche | 2016-10-22 23:47:05 |
Added comments to sources. | ce6491ef1337ea34d33b7e4ede0eb9f634e7ab1a | Detche | 2016-10-22 23:32:26 |
Added examples. Modified reaction class to add triggers. | 545a35d1c5bb36e1b4e4d818b0e6a8f6642a222f | Detche | 2016-10-22 20:56:54 |
Initial commit | 2cd79df6224290a994b1453f0327740816b0f632 | Detche | 2016-10-21 16:21:02 |
File | Lines added | Lines deleted |
---|---|---|
botly/trigger.py | 1 | 1 |
File botly/trigger.py changed (mode: 100644) (index cbaf9c0..48f2330) | |||
... | ... | class Trigger: | |
59 | 59 | def set_trigger_chance(self, percent): | def set_trigger_chance(self, percent): |
60 | 60 | """Adds a chance for the trigger to activate. 100% is default value.""" | """Adds a chance for the trigger to activate. 100% is default value.""" |
61 | 61 | ||
62 | assert isinstance(value, int), 'Int expected for trigger chance.' | ||
62 | assert isinstance(percent, int), 'Int expected for trigger chance.' | ||
63 | 63 | percent = percent if percent >= 1 else 1 | percent = percent if percent >= 1 else 1 |
64 | 64 | percent = percent if percent <= 100 else 100 | percent = percent if percent <= 100 else 100 |
65 | 65 | self.triggerChance = percent | self.triggerChance = percent |