#!/usr/bin/python3
###############################################################################
# openwifi.py - openwifi
# Automatically accept terms and conditions on public wifi so you don't have
# to.
# Licensed under the ISC License.
#
# https://github.com/mutantmonkey/openwifi
# author: mutantmonkey <mutantmonkey@mutantmonkey.in>
###############################################################################

from openwifi import attwifi

__author__ = "mutantmonkey <mutantmonkey@mutantmonkey.in>"
__license__ = "ISC"

if __name__ == '__main__':
    n = attwifi.AttWifi()
    if not n.connected():
        n.login()
        print("Connected.")
    else:
        print("You are already connected.")
