@@ -0,0 +1,2403 @@
+import requests%0Aimport threading%0AcheckForUpdates = True%0AnoMessages = False%0Aversion = 1.0%0AverifiedMessages = True%0Amessages = 0%0Atoken = 0%0A%0Aserver = %22http://analyticord.solutions%22%0Adef init(token):%0A    global token%0A    token = token%0A    r = requests.get(server + %22/api/botLogin%22,  headers=%7B'Authorization': 'bot ' + token%7D)%0A    data = r.json()%0A    if data.get('error'):%0A        print(%22%5BAC%5D Login failed. Your bot will continue to start, but not send data to Analyticord.%22)%0A    else:%0A        if noMessages == False: print(%22%5BAC%5D Logged in to Analyticord as %22 + data%5B'name'%5D)%0A        %0A    if checkForUpdates:%0A        r = requests.get(server + %22/api/version?lib=python%22,  headers=%7B'Authorization': 'bot srOQXHXBW2TSMzhj2OMtuL3gXZiSppvZm7CIRImUjGAm6Q2K91Z5XrtMF5YEXawT0zQzVggmcvLFUmYzleRkymNStJWVHPvelKCArEZA4cIwWDBXIkaaotxSYz3QUplR'%7D)%0A        body = r.text%0A        if float(body) %3E version:%0A            print(%22%5BAC%5D Version %22 + str(body) + %22 is avaliable, you're running %22 + str(version) + %22 update to use that latest features. https://github.com/analyticord/module-python%22)%0A    %0Adef send(eventType, data):%0A    r = requests.post(server + %22/api/submit%22, data=%7B'eventType': eventType, 'data': data%7D,  headers=%7B'Authorization': 'bot srOQXHXBW2TSMzhj2OMtuL3gXZiSppvZm7CIRImUjGAm6Q2K91Z5XrtMF5YEXawT0zQzVggmcvLFUmYzleRkymNStJWVHPvelKCArEZA4cIwWDBXIkaaotxSYz3QUplR'%7D)%0A    body = r.json()%0A    if body.get('error'):%0A        print(%22%5BAC%5D Failed to send data, %22 + eventType + %22/%22 + data)%0A    else:%0A        if verifiedMessages:%0A            print(%22%5BAC%5D Success! The data was sent! Verify that it's the correct information at: https://analyticord.solutions/api/verified?id=%22 + body%5B'ID'%5D)%0A%0Adef message():%0A    global messages%0A    messages = messages + 1%0A%0Adef submitMessages():%0A    global token%0A    global messages%0A    threading.Timer(60.0, submitMessages).start() %0A    if messages %3E 0:%0A        r = requests.post(server + %22/api/submit%22, data=%7B'eventType': %22messages%22, 'data': messages%7D,  headers=%7B'Authorization': 'bot ' + token%7D)%0A        body = r.json()%0A        if body.get('error'):%0A            print(%22%5BAC%5D Something went wrong while trying to send data.%22)%0A        else:%0A            messages = 0%0A            if verifiedMessages:%0A                print(%22%5BAC%5D Success! The data was sent! Verify that it's the correct information at: https://analyticord.solutions/api/verified?id=%22 + body%5B'ID'%5D)%0A                %0AsubmitMessages()%0A

Create analyticord.py