@ruminaider/slack-cli 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/slack.js CHANGED
@@ -38,7 +38,6 @@ const VALUE_FLAGS = new Set([
38
38
  "--text",
39
39
  "--blocks",
40
40
  "--name",
41
- "--at",
42
41
  "--file",
43
42
  ]);
44
43
 
@@ -120,7 +119,6 @@ Messages:
120
119
  ${CLI_NAME} message reply <channel> <thread-ts> <text>
121
120
  ${CLI_NAME} message update <channel> <ts> <text>
122
121
  ${CLI_NAME} message delete <channel> <ts>
123
- ${CLI_NAME} message schedule <channel> <text> --at <unix-ts>
124
122
  ${CLI_NAME} thread read <channel> <thread-ts>
125
123
 
126
124
  Search:
@@ -226,10 +224,6 @@ async function runMessage(sub, p, values) {
226
224
  }));
227
225
  case "delete":
228
226
  return out(await api.messageDelete(c, channel(), need(p[1] || values.get("--ts"), "ts")));
229
- case "schedule":
230
- return out(await api.messageSchedule(c, channel(), need(p[1] ?? values.get("--text"), "text"), need(values.get("--at"), "--at"), {
231
- threadTs: values.get("--thread-ts"),
232
- }));
233
227
  default: throw new Error(`Unknown message subcommand: ${sub}`);
234
228
  }
235
229
  }
package/lib/api.js CHANGED
@@ -144,16 +144,6 @@ export function messageDelete(creds, channel, ts) {
144
144
  return webApiCall("chat.delete", { channel, ts }, creds);
145
145
  }
146
146
 
147
- export function messageSchedule(creds, channel, text, postAt, options = {}) {
148
- return webApiCall("chat.scheduleMessage", {
149
- channel,
150
- text,
151
- post_at: num(postAt),
152
- thread_ts: options.threadTs,
153
- blocks: options.blocks,
154
- }, creds);
155
- }
156
-
157
147
  // ─── search ──────────────────────────────────────────────────
158
148
  export function searchMessages(creds, query, options = {}) {
159
149
  return webApiCall("search.messages", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruminaider/slack-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Slack CLI that authenticates as you using your existing Slack desktop session. Read channels, send messages, search, and manage reactions, files, pins, and canvases from the terminal. No app, no OAuth, no admin approval.",
5
5
  "type": "module",
6
6
  "license": "MIT",