ikenami / pingu Goto Github PK
View Code? Open in Web Editor NEWA Slack chatbot that uses Slack/Bolt with TypeScript :zap:
License: MIT License
A Slack chatbot that uses Slack/Bolt with TypeScript :zap:
License: MIT License
When I type in a channel get my bitbucket prs
,
I expect the bot
to send me a private message listing all the PullRequests I'm assigned to as a reviewer at Bitbucket and that are open
Would have to:
There is a similar feature (Github Integration) already implemented at this bot, that retrieves a specific user's PullRequests and Issues. You can check it out, it might be helpful. :3
When I type in a channel get my prs
,
I expect the bot
to send me a private message listing all the PRs I'm assigned to and that are open
Would have to:
When I type in a channel list my pending prs
,
I expect the bot
to send me a private message listing all the PRs I'm assigned to as a reviewer that are open and that I didn't review it yet
When I type in a channel tell @jane.smith they are super cool
,
I expect the bot
to send a private message to the user jane.smith
The thing is, I don't know yet how to get the userId
when I have only the username
.
Solving this issue will enable me to made the following update:
app.message('tell fulano they are super cool', async ({ message, context }) => {
await app.client.reactions.add({
token: context.botToken,
name: 'top',
channel: message.channel,
timestamp: message.ts,
});
await app.client.chat.postMessage({
token: context.botToken,
channel: 'UN88YAC9G',
text: `<@${message.user}> wants you to know you are super cool`,
});
});
// Would also need to update the regex to retrieve the username
app.message('tell @jane.smith they are super cool', async ({ message, context }) => {
// This is where the magic happens
const userId = getUserIdFromUsername('jane.smith');
await app.client.reactions.add({
token: context.botToken,
name: 'top',
channel: message.channel,
timestamp: message.ts,
});
await app.client.chat.postMessage({
token: context.botToken,
channel: userId, // Sends a pm to this user
text: `<@${message.user}> wants you to know you are super cool`,
});
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.