Initial commit
This commit is contained in:
18
nodes/reenforcer/reenforcer.py
Normal file
18
nodes/reenforcer/reenforcer.py
Normal file
@@ -0,0 +1,18 @@
|
||||
class ReEnforcer:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"string": ("STRING", {"multiline": True}),
|
||||
"count": ("INT", {"default": 1, "min": 1, "max": 100}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("STRING",)
|
||||
RETURN_NAMES = ("string",)
|
||||
FUNCTION = "reenforce"
|
||||
CATEGORY = "AODH Pack"
|
||||
|
||||
def reenforce(self, string, count):
|
||||
result = ", ".join([string] * count)
|
||||
return (result,)
|
||||
Reference in New Issue
Block a user