Skip to content

Commit

Permalink
SOFA-dev-meeting: post as a txt file
Browse files Browse the repository at this point in the history
  • Loading branch information
hugtalbot committed Nov 7, 2024
1 parent 457b8e4 commit f05e226
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SOFA-dev-meeting/SOFA-dev-meeting-template.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
discord_token = os.environ['DISCORD_WEBHOOK_URL']

def postOnDiscord():
files = {'upload_file': open('SOFA-dev-meeting.md','rb')}
response = requests.post(discord_token, files)
file = {'file': open('SOFA-dev-meeting.txt','rb')}
response = requests.post(discord_token, files=file)
print("Status: "+str(response.status_code)+"\nReason: "+str(response.reason)+"\nText: "+str(response.text))
return

Expand Down Expand Up @@ -40,7 +40,7 @@ def main(argv):

message = message + "\n---\n"

with open("SOFA-dev-meeting.md", "w") as f:
with open("SOFA-dev-meeting.txt", "w") as f:
f.write(message)

postOnDiscord()
Expand Down

0 comments on commit f05e226

Please sign in to comment.