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.
Related
This is probably going to be the most complex thing that I've ever asked here. As the title says I want to figure a way to automate a webhook which sends my new added bookmarks from my Pixiv Account into a discord channel. I sadly don't know much about coding, only basic things like batch scripts and ahk. I would use ifttt at this point but it doesn't support Pixiv, so I am completely clueless and don't know what to do or where to start. I hope someone has a nice Idea
I'm trying to make a program to submit my google classroom work quicker (as a student). I've read the google classroom API but it's very oriented to teachers and I don't know if my idea is posible.
I would be very thankful if someone can help me!
No it is not possible.
The reason, unless you used the same program that created the assignment, you will not have the proper developer authentication permissions.
You can read more here: https://developers.google.com/classroom/reference/rest/v1/courses.courseWork.studentSubmissions/turnIn
If you want to experiment and learn how the process goes, possibly even test different approaches, I recommend this post:
https://yagisanatode.com/2020/05/13/google-apps-script-upload-grades-into-a-google-classroom-coursework-assignment/
According to the Slack docs, I should use <#W123> syntax. However, this turns into #joe, which alerts joe that someone messaged them. Is there any syntax like <W123> that resolves to just the user's display name?
(I am aware that I could use user.info, but so far I've avoided making any API calls and I was hoping I could keep that going.)
Got a response from #SlackAPI on Twitter. Unfortunately, there is no markdown-y way to do this. On the plus side, they have a good sense of humor.
I wrote a chatbot in Bot Framework builder for this Cortana. Sometimes I get "I can't connect at the moment. Please try again in a little bit." when I use it, but sometimes it worked with the same word.
Is anyone know what is the real reason for this message?
Without seeing your code is hard to know. It could be related to your internet connection or with your bot's code.
First, you should check if in the Bot Framework portal there are errors reported under the Cortana channel in your Bot.
Also, you should enable debugging in your Cortana Skill just in case something is going on with your code. Check the Testing & Debugging Best Practices documentation article from Cortana Skills.
I'm an intern and I've been tasked with creating a RoomFinder API for Outlook that works with Amazon's Lex/Lambda to find a location and schedule meetings given a list of participants. The API is supposed to be able to pull the calendars from Outlook for the individual participants, find a time that works for all of them and a location with a proper seating capacity, and then schedule the meeting+add it to the calendars of those involved. I have a pretty good understanding of how Lex works and have created my own functions using Lambda before but I don't even know where to begin when it comes to pulling the calendars from Outlook for the participants.
I have been trying to get an idea of how to go about this for a few days now and found some information on Outlook's REST API which it sounds like can be used to gather some of the needed information but I'm not sure how to actually begin doing that. Here are links to a few of those pages:
https://msdn.microsoft.com/en-us/office/office365/api/use-outlook-rest-api#RegAuthConverged
https://msdn.microsoft.com/en-us/library/office/dn643730(v=exchg.150).aspx
I also managed to find a few pages on GitHub of similar, more basic scripts using Python to acquire things like Room Availability from Outlook but I couldn't get any of those to work. I don't have enough reputation to post more links but if seeing those would help I can maybe comment them later.
I'm really looking for any advice on where to begin or tips on how to get this done. I think I may be on the right track with the REST API idea but I have no clue how to actually use it or set it up.
Any help is appreciated, thanks.
We are just now rolling out a new REST API to list the roomsIDs(findrooms). You can use this in conjunction with the findmeetingtimes API to schedule meetings. Please take a look at the REST API docs here(remember to choose beta in the top-right)
https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations#GetMeetingRooms