Zoom integration #53
49
integrations/zoom.js
Normal file
@ -0,0 +1,49 @@
|
||||
|
||||
const fetch = require('node-fetch');
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
module.exports = async function(robot, kredits) {
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
function createContributionFor (participant, meeting) {
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
// TODO
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
}
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
function getContributorByZoomUserId(userId) {
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
return Contributor.findByAccount({ zoomId: userId });
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
}
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
function getMeetingParticipants(meetingUUID) {
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
fetch(`https://api.zoom.us/v2/past_meetings/${meetingUUID}/participants`)
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
.then(response => response.json())
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
.then(json => json.participants)
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
}
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
function handleZoomMeetingEnded(data) {
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
![]() I think we should not do this. It will be a normal thing in a public call that not everyone is a contributor with a profile. I think we should not do this. It will be a normal thing in a public call that not everyone is a contributor with a profile.
|
||||
const meetingUUID = data.uuid;
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
const topic = data.topic;
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
const duration = data.duration;
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
const meeting = {
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
// TODO
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
}
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
if (duration < 15) {
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
robot.logger.info('[hubot-kredits] ignoring short calls');
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
return;
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
}
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
const participants = await getMeetingParticipants(meetingUUID);
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
participants.forEach(p => {
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
createContributionFor(p, meeting);
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
});
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
}
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
robot.router.post('/incoming/kredits/zoom'+process.env.KREDITS_WEBHOOK_TOKEN), (req, res) => {
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
let data = req.body;
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
const eventName = data.event;
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
const payload = data.payload;
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
if (eventName === 'meeting.ended') {
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
handleZoomMeetingEnded(payload);
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
}
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
res.sendStatus(200);
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
})
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
||||
}
|
||||
![]()
```suggestion
const { Contributor, Contribution } = kredits;
```
![]()
```suggestion
const contribution = {
```
![]() This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call". This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Ignoring zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
```
![]()
```suggestion
robot.logger.info(`[hubot-kredits] Contribution created: ${tx.hash}`);
```
![]()
```suggestion
robot.router.post('/incoming/kredits/zoom/'+process.env.KREDITS_WEBHOOK_TOKEN, (req, res) => {
```
|
This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".
This is a bit of an issue, because we sometimes use the Weekly Call room for other meetings. Not sure what the best solution is. Maybe just something generic like "Team/Community Call".