Skip to content

HilbertGilbertson/alfred-snowcord

Repository files navigation

Snowcord for Alfred

Takes a Discord snowflake and converts it to a time (UTC, local and Unix timestamp).

demo

Also connects with Alfred-Whencord

demo-whencord

Download

Download the latest release here.

Note: Written for Alfred 4+. Alfred's Clipboard History must be enabled.

MacOS Monterey users: Some stock packages have been removed from MacOS Monterey; this includes php. If you are using MacOS Monterey, please install Homebrew, from which you can then quickly and easily install PHP. With Homebrew it's as simple as: brew install php.

Usage

  • dd <snowflake> — Convert a Discord snowflake to a time
  • Hotkey — Quickly launch from Discord (Discord application must be the front most window)
    • uses text selection within Discord (if highlighted text is a valid snowflake); or
    • uses the contents of the clipboard (if a valid snowflake)

Configuration

There are a few options in the workflow's configuration sheet. You do not need to configure anything, but these options exist if you would like to alter time formats.

Option Meaning
localTimezone For local time, use a different timezone than your system clock. If left blank, your system timezone will be used automatically.
The below variables all use PHP DateTime.
copyFormat When you select an item in the list, the time will be copied to your clipboard in this format.
copyLocalFormat Same as copyFormat above, except for local time.
format The main title format of the date and time displayed.
formatFull The detailed subtitle format of the date and time displayed.
localFormat Same as format above, except for local time.
localFormatFull Same as formatFull above, except for local time.
usingWhencord If you're using my Alfred-Whencord workflow, you can set this to 1. When enabled, this will show you an additional option to pass a snowflake through to Whencord to create a dynamic timestamp for posting on Discord.

Hotkey

When you import an Alfred workflow, any hotkeys are stripped out and must be reconfigured by the end user.

Setting a hotkey for Snowcord is not required, but it remains a useful way to quickly trigger Snowcord. Head to the workflow settings and set your chosen hotkey as shown in the image below.

I recommend using ⌘D (the D key is conveniently located and is one of the few keys on the left-hand side of the keyboard that is not already bound to anything in Discord when combined with the Command key).

License

Alfred-Snowcord is released under the MIT Licence.