mirror of
https://github.com/gsi-upm/senpy
synced 2025-08-23 18:12:20 +00:00
Added random plugin and other features
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from senpy.plugins import SenpyPlugin
|
||||
from senpy.models import Response
|
||||
from time import sleep
|
||||
|
||||
class SleepPlugin(SenpyPlugin):
|
||||
@@ -8,3 +9,6 @@ class SleepPlugin(SenpyPlugin):
|
||||
|
||||
def activate(self, *args, **kwargs):
|
||||
sleep(self.timeout)
|
||||
|
||||
def analyse(self, *args, **kwargs):
|
||||
return Response()
|
||||
|
Reference in New Issue
Block a user