Skip to content

Commit

Permalink
added beststories as a 2nd msg
Browse files Browse the repository at this point in the history
  • Loading branch information
yohn-maistre committed Apr 4, 2023
1 parent 94d07a2 commit 0190f3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ def get_item(item_id):

def sendtop_to_webhook(posts):
# Kirim payload TOP POSTS dalam JSON ke URL Discord Webhook
current_date = dt.date.today().strftime('%B %d, %Y')
timezone = pytz.timezone('Asia/Jayapura')
current_datetime = dt.datetime.now(timezone)
current_date = current_datetime.strftime('%B %d, %Y')

payload = {
'username': "Y Combinator's Hacker News",
Expand Down

0 comments on commit 0190f3f

Please sign in to comment.