# Path: will/utils.py
# def show_valid(valid_str):
#     puts(colored.green(u"✓ %s" % valid_str))
# 
# def warn(warn_string):
#     puts(colored.yellow("! Warning: %s" % warn_string))
# 
# def note(warn_string):
#     puts(colored.cyan("- Note: %s" % warn_string))
# 
# def error(err_string):
#     puts(colored.red("ERROR: %s" % err_string))


import os
import sys
    import uuid
    import time
    import random
    import hashlib
                import config
                        import config
from will.utils import show_valid, warn, note, error
from clint.textui import puts, indent
from six.moves.urllib import parse
from six.moves import input
                        warn("no HIPCHAT_DEFAULT_ROOM found in the environment or config.  "
                             "Defaulting to '%s', the first one." % settings["HIPCHAT_ROOMS"][0])
                    settings["HIPCHAT_DEFAULT_ROOM"] = settings["HIPCHAT_ROOMS"][0]

            if "HIPCHAT_HANDLE" in settings and "HIPCHAT_HANDLE_NOTED" not in settings:
                if not quiet:
                    note(
                        """HIPCHAT_HANDLE is no longer required (or used), as Will knows how to get\n
                                his current handle from the HipChat servers."""
                    )
                    settings["HIPCHAT_HANDLE_NOTED"] = True

            if "HIPCHAT_NAME" in settings and "HIPCHAT_NAME_NOTED" not in settings:
                if not quiet:
                    note(
                        """HIPCHAT_NAME is no longer required (or used), as Will knows how to get\n
                                his current name from the HipChat servers."""
                    )
                    settings["HIPCHAT_NAME_NOTED"] = True

        # Rocket.chat
        for b in settings["IO_BACKENDS"]:
            if "rocketchat" in b:
                if "ROCKETCHAT_USERNAME" in settings and "ROCKETCHAT_EMAIL" not in settings:
                    settings["ROCKETCHAT_EMAIL"] = settings["ROCKETCHAT_USERNAME"]
                if "ROCKETCHAT_URL" in settings:
                    if settings["ROCKETCHAT_URL"].endswith("/"):
                        settings["ROCKETCHAT_URL"] = settings["ROCKETCHAT_URL"][:-1]

        if (

# Path: will/utils.py
# def show_valid(valid_str):
#     puts(colored.green(u"✓ %s" % valid_str))
# 
# def warn(warn_string):
#     puts(colored.yellow("! Warning: %s" % warn_string))
# 
# def note(warn_string):
#     puts(colored.cyan("- Note: %s" % warn_string))
# 
# def error(err_string):
#     puts(colored.red("ERROR: %s" % err_string))


# Path: will/settings.py
import os
import sys
    import uuid
    import time
    import random
    import hashlib
                import config
                        import config
from will.utils import show_valid, warn, note, error
from clint.textui import puts, indent
from six.moves.urllib import parse
from six.moves import input

                        warn("no HIPCHAT_DEFAULT_ROOM found in the environment or config.  "
                             "Defaulting to '%s', the first one." % settings["HIPCHAT_ROOMS"][0])
                    settings["HIPCHAT_DEFAULT_ROOM"] = settings["HIPCHAT_ROOMS"][0]

            if "HIPCHAT_HANDLE" in settings and "HIPCHAT_HANDLE_NOTED" not in settings:
                if not quiet:
                    note(
                        """HIPCHAT_HANDLE is no longer required (or used), as Will knows how to get\n
                                his current handle from the HipChat servers."""
                    )
                    settings["HIPCHAT_HANDLE_NOTED"] = True

            if "HIPCHAT_NAME" in settings and "HIPCHAT_NAME_NOTED" not in settings:
                if not quiet:
                    note(
                        """HIPCHAT_NAME is no longer required (or used), as Will knows how to get\n
                                his current name from the HipChat servers."""
                    )
                    settings["HIPCHAT_NAME_NOTED"] = True

        # Rocket.chat
        for b in settings["IO_BACKENDS"]:
            if "rocketchat" in b:
                if "ROCKETCHAT_USERNAME" in settings and "ROCKETCHAT_EMAIL" not in settings:
                    settings["ROCKETCHAT_EMAIL"] = settings["ROCKETCHAT_USERNAME"]
                if "ROCKETCHAT_URL" in settings:
                    if settings["ROCKETCHAT_URL"].endswith("/"):
                        settings["ROCKETCHAT_URL"] = settings["ROCKETCHAT_URL"][:-1]

        if (

            "DEFAULT_BACKEND" not in settings and "IO_BACKENDS" in settings