Slack Macros banner

Slack Macros

10 devlogs
11h 23m 12s

with a average of 40% less text and more convenience, you can now send messages way faster and do things way faster.

This project uses AI

Used Copilot for some parts of the code. See if there is a comment line at the beginning with “copilot:” in it, then with that file Copilot helped. And i used ofc the Copilot autocompletion.

Demo Repository

Loading README...

Matthias

Shipped this project!

Hours: 11.39
Cookies: 🍪 137
Multiplier: 12.07 cookies/hr

slack macros (slam)

slack macros (slam for short) helps you with things that take some time. think of:

  • translating a message
  • asking ai for an answer
  • telling users that they need patience for their orders in help channels
  • and more!

with an average of 40% less text and more convenience, you can now send messages and get things done way faster.

usage

try it out in #slack-macros with /slam or @slack macros (for threads) with one of these arguments:

  • hi - post a silly message as you
  • tl - translate your message to english and post it as you
  • ai - get an answer from ai

note: for now, you will have to delete the macro message yourself if you are in threads. this is something i could not complete in time.

roadmap & to-do

because flavortown ends in 10hrs, i could not fully finish slack macros. this is the to-do list for #beest:

  • @slack macros macro deletion (oauth)
  • send as real user (oauth)
  • support for options like -q (for quiet)
  • better website
  • easier function adding

i will make the mention @slam tomorrow! i could not find that setting :(

behind the scenes

i made this project 90% without ai, but unfortunately, i could not finish it on time, so i used ai for the last 10%

head over to slack-macros.matthiaslubbertsen.workers.dev to see all macros!

make a pr to matthiaslubbertsen/slack-macros to add your own macro (probably with a function?) using this file as a template

Matthias

renamed scripts to functions, and added a template for functions.

idk what to put as a image here :pf: so ig this is the best one, here is description: renamed the folder and all associated code.

Changelog

Attachment
0
Matthias

implemented translation functionality by fixing:

  • generate-scripts.js with { defalut as name} instead of *
  • sending messages from functions back with respondAsUser or respondUserOnly instead of just return the text lol
  • prompt writing (to be finished)
  • fixin [object Object]
  • getting macroKey and args from the slash command (copilot help)
  • fix colors on website
  • restyle website
  • pings and emojis work out of the box with translation

Changelog

Attachment
0
Matthias

I have fixed the sendSlackResponseAsUser function and it works!! see #slack-macros

Attachment
0
Matthias

Made more functions work, and am debugging message functions.

Attachment
0
Matthias

I found out that i cant use my slash command in threads … 😭 so now my whole idea is to the kloten, but im thinking abt using things like !slam and just subscribe to every slack channel and message and do the check if it starts with that command, then execute the macro. Otherwise i can use a @slam probably, but thats the last option.

I also drawed the logo, seen the attacements below. Im hopefully tomorrow or otherwise later this week drawing it in Illustrator

Attachment
0
Matthias

Added a new Hackatime project to this project (renamed it last week from slack-help to slack-macros). So same updates as the past devlog! I feel really stupid about the attachment, but i will do it better from now on, promise

Attachment
0