Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ“… 6/7 @ noon PT - Automating gr2m/helpdesk, Episode V #25

Closed
1 of 5 tasks
gr2m opened this issue Jun 3, 2021 · 3 comments
Closed
1 of 5 tasks

πŸ“… 6/7 @ noon PT - Automating gr2m/helpdesk, Episode V #25

gr2m opened this issue Jun 3, 2021 · 3 comments
Labels
automating helpdesk show Preparation issue for a live show

Comments

@gr2m
Copy link
Owner

gr2m commented Jun 3, 2021

πŸ’πŸ» Automating gr2m/helpdesk, Episode V
πŸ“… Monday, June 7, 2021
πŸ• 12:00pm Pacific Time (in your timezone)
πŸŽ™οΈ no guests
🏷️ Automation


Subscribe to this issues to get a notification before the show begins and a summary after the show concludes.

Automating gr2m/helpdesk

I've laid out the current process for this repository at https://github.com/gr2m/helpdesk/tree/f085060fb98f61a005c9e79df15fdad6466c6a1a#how-i-use-this-repository. It's mostly manual. Time to spice it up a bit with some automation!

In this show, I'll will finish up the automation around tweets, following the past two episodes #20 and #20 and #12

Outline

  1. Quick review of what I've build so far with tweets in episode II, episode III, and episode IV
  2. Update and delete scheduled tweets.
  3. Run the automated tweets script whenever a new show issue is created or updated

Preparation

  • Figure out how to send authenticated requests to Twitter's API using the app and user credentials. None of the existing twitter SDKs provide the APIs to update or delete scheduled tweets.
  • 30 minute announcement tweet
  • start of show tweet
  • comment on issue
  • recording available tweet

Recording

image

Shownotes

// workaround: cannot parse "June 3, 2021 1:00pm" but can parse "June 3, 2021 12:00pm"
// workaround: cannot set default timezone, so parse the date/time string first, then use `.tz()` with the expected date/time format
const timeStringWithoutAmPm = timeString.replace(/(am|pm)\b/, "");
const tmp = dayjs(
  [dayString, timeStringWithoutAmPm].join(" "),
  // "MMMM D, YYYY H:mma", // see workaround
  "MMMM D, YYYY H:mm",
  true
);

let time = dayjs.tz(
  tmp.format("YYYY-MM-DD HH:mm"),
  "America/Los_Angeles"
);
@gr2m gr2m added show Preparation issue for a live show automating helpdesk labels Jun 3, 2021
@gr2m

This comment has been minimized.

@gr2m

This comment has been minimized.

@gr2m
Copy link
Owner Author

gr2m commented Jun 7, 2021

Video is now on YouTube:
https://www.youtube.com/watch?v=QG2r_E_tfeo

@gr2m gr2m closed this as completed Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automating helpdesk show Preparation issue for a live show
Projects
None yet
Development

No branches or pull requests

1 participant