简体   繁体   中英

Hubot Slack scripting

I just got into developing my Slack bot, but I don't know (yet) how to do certain things, or if they're even possible.

What I basically want (for example) is that the bot gets my Slack username and returns it to me.

If I would know how to do this, I could integrate much more interesting things into my bot. I did check the documentation, but (as far as I could see) there was nothing on this subject.

Another thing I want to achieve is making the bot do a call to my custom API.

If anyone would give me a helping hand (example/link to some great examples/documentation for example) I would greatly appreciate it!

I managed yesterday to get the information from Slack using a debug command (console.log Object(msg)). This gave me all the information I wanted.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM