import requests import json import urllib2 import time webhook_url = 'https://discordapp.com/api/webhooks/355866897704550412/e3dmYfVXANhJaCnZJkbewLUHLLu7zjEmo0GnskJC9fYrcMjO6VFAgNzISGOKI0sddcFq' slack_data = {} #"username":"IFTTT YouTube Test", while True: data = urllib2.urlopen("https://drive.google.com/uc?export=download&id=0B8OPOPGiSJ7fZlB5SjFFcmF0a1E") a = data.readlines() if a[0][0] == "F": slack_data["content"] = "```No Premade Games Scheduled```" else: b = "" b = b.join(a[1:]) slack_data["content"] = "```" + b + "```" response = requests.post( webhook_url, data=json.dumps(slack_data), headers={'Content-Type': 'application/json'} ) break
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more