question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

suggestion: slash commands

See original GitHub issue

what do you think about adding another type?

+ weather *
/ weather <star>

these are slash commands the bot can run. basically similar to

<call>weather <star></call>

i’m actually using something similar to this in our setup but more like

^ /command param

which isn’t as nice to write.

I like the syntax of

+ trigger
@ redirect

with the syntax color hiliting it makes scripts quite clear to read.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dcsancommented, May 11, 2016

yeh i usually get them to format like this:

+ weather
  - The weather in <get location> will be <get temperature>.
    ^ Expect <get condition> today.
    ^ And remember to smile more.

then its harder to screw up with the copypasta.

1reaction
gleuchcommented, May 10, 2016

@dscan good suggestion on the / for commands.

FWIW, we trained our editors to use ^ to break on newlines using ! local concat = newline. Not as clean as smart indentions, but with some syntax highlighting in our editor, still easy enough for our editors to visually see what is happening.

! local concat = newline

+ weather
- The weather in <get location> will be <get temperature>.
^ Expect <get condition> today.
^ And remember to smile more.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Snippet: Discord Suggestion Slash Command | Raxlitude
Discord Suggestion Slash Command. This slash command sends a message to the channel you set as the environment variable `CMDLOGS_CHANNEL_ID`, which includes ...
Read more >
The Slash Command Series - Types of Command Suggestions
If you have no clue of what command suggestion is, I recommend you to take a look at all the Slash Command Series...
Read more >
How To Make A Suggestion Bot With Slash Commands In Replit
This Video Is About How To Make A Suggestion Bot With Slash Commands In Replit | Disord.js v13 | DECΩDERS™Code In Discord Server ......
Read more >
Slash Commands - disnake
Slash commands support interactive autocompletion. You can define a function that will constantly suggest autocomplete options while the user is typing. So ...
Read more >
Enabling interactivity with Slash Commands - Slack API
Slash Commands allow users to invoke your app by typing a string into the message composer box. A submitted Slash Command will cause...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found