19 lines
485 B
Python
19 lines
485 B
Python
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,)
|