Skip to content

Commit

Permalink
Update gChatNotifier.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tiroq authored Jun 3, 2020
1 parent c066728 commit ceda9fb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions gChatNotifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import datetime
import optparse
import requests
import subprocess
from json import dumps

class WebHookCacher:
Expand Down Expand Up @@ -103,10 +102,6 @@ def sendForm(self, title='', subtitle='', status='note', entries=[], details_url
if image != '':
if not os.path.exists(image):
print "Not found: {0}".format(image)
# cmd = ['curl', '-F', "file=@{0}".format(image), 'https://file.io']
# p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
# output, error = p.communicate()
# p.wait()
image_name = os.path.split(image)[1]
url = 'https://transfer.sh/' + image_name
headers = {'Max-Downloads': '100'}
Expand Down

0 comments on commit ceda9fb

Please sign in to comment.