# Path: templates/text.py
# class TextTemplate:
#     def __init__(self, text='', post_text='', limit=TEXT_CHARACTER_LIMIT):
#         self.template = template['value']
#         self.text = text
#         self.post_text = post_text
#         self.limit = limit
# 
#     def set_text(self, text=''):
#         self.text = text
# 
#     def set_post_text(self, post_text=''):
#         self.post_text = post_text
# 
#     def set_limit(self, limit=TEXT_CHARACTER_LIMIT):
#         self.limit = limit
# 
#     def get_message(self):
#         n = self.limit - len(self.post_text)
#         if n > len(self.text):
#             self.template['text'] = self.text + self.post_text
#         else:
#             s = self.text[:n-3].rsplit(' ', 1)[0] + '...' + self.post_text
#             self.template['text'] = s
#         return self.template


import random
from templates.text import TextTemplate


def process(input):
    whomadeyou = [
        'An awesome dude, dude!',
        'A super cool dude, dude!',
        'Batman! Nananana!'
    ]
    output = {
        'input': input,

# Path: templates/text.py
# class TextTemplate:
#     def __init__(self, text='', post_text='', limit=TEXT_CHARACTER_LIMIT):
#         self.template = template['value']
#         self.text = text
#         self.post_text = post_text
#         self.limit = limit
# 
#     def set_text(self, text=''):
#         self.text = text
# 
#     def set_post_text(self, post_text=''):
#         self.post_text = post_text
# 
#     def set_limit(self, limit=TEXT_CHARACTER_LIMIT):
#         self.limit = limit
# 
#     def get_message(self):
#         n = self.limit - len(self.post_text)
#         if n > len(self.text):
#             self.template['text'] = self.text + self.post_text
#         else:
#             s = self.text[:n-3].rsplit(' ', 1)[0] + '...' + self.post_text
#             self.template['text'] = s
#         return self.template


# Path: modules/src/whomadeyou.py
import random
from templates.text import TextTemplate



def process(input):
    whomadeyou = [
        'An awesome dude, dude!',
        'A super cool dude, dude!',
        'Batman! Nananana!'
    ]
    output = {
        'input': input,

        'output': TextTemplate(random.choice(whomadeyou)).get_message(),