def setup(bot: commands.Bot):
    check_folders()
    check_files()

    if dateutil_available:
        if pytz_available:
            if tabulate_available:
                bot.add_cog(Survey(bot))
            else:
                raise RuntimeError(
                    "You need to install `tabulate`: `pip install tabulate`.")
        else:
            raise RuntimeError(
                "You need to install `pytz`: `pip install pytz`.")
    else:
        raise RuntimeError(
            "You need to install `python-dateutil`:"
            " `pip install python-dateutil`.")