Zoom integration #53
4
index.js
@ -152,6 +152,10 @@ module.exports = async function(robot) {
|
||||
require('./integrations/github')(robot, kredits);
|
||||
require('./integrations/gitea')(robot, kredits);
|
||||
|
||||
if (typeof process.env.KREDITS_ZOOM_JWT !== 'undefined') {
|
||||
require('./integrations/zoom')(robot, kredits);
|
||||
}
|
||||
|
||||
if (typeof process.env.KREDITS_MEDIAWIKI_URL !== 'undefined') {
|
||||
require('./integrations/mediawiki')(robot, kredits);
|
||||
}
|
||||
|
97
integrations/zoom.js
Normal file
@ -0,0 +1,97 @@
|
||||
|
||||
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 messageRoom(message) {
|
||||
![]()
```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.messageRoom(process.env.KREDITS_ROOM, message);
|
||||
![]()
```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) => {
```
|
||||
const { Contributor, Contribution } = 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) => {
```
|
||||
const kreditsContributionAmount = 500;
|
||||
![]()
```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 kreditsContributionKind = 'community';
|
||||
![]()
```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 zoomAccessToken = process.env.KREDITS_ZOOM_JWT;
|
||||
![]()
```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 walletTransactionCount = await kredits.provider.getTransactionCount(kredits.signer.address);
|
||||
![]()
```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 nonce = walletTransactionCount;
|
||||
![]()
```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) => {
```
|
||||
async function createContributionFor (displayName, 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) => {
```
![]() 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 contributor = await getContributorByZoomDisplayName(displayName);
|
||||
![]()
```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 (!contributor) {
|
||||
![]()
```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] Contributor not found: Zoom display name: ${displayName}`);
|
||||
![]()
```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) => {
```
|
||||
messageRoom(`I tried to add a contribution for zoom user ${displayName}, but did not find a matching contributor profile.`);
|
||||
![]()
```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 Promise.resolve();
|
||||
![]()
```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) => {
```
|
||||
const contribution = {
|
||||
![]()
```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) => {
```
|
||||
contributorId: contributor.id,
|
||||
![]()
```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) => {
```
|
||||
contributorIpfsHash: contributor.ipfsHash,
|
||||
![]()
```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) => {
```
|
||||
amount: kreditsContributionAmount,
|
||||
![]()
```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) => {
```
|
||||
kind: kreditsContributionKind,
|
||||
![]()
```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) => {
```
|
||||
description: 'Team/Community Call',
|
||||
![]()
```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) => {
```
|
||||
date: meeting.end_time.split('T')[0],
|
||||
![]()
```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) => {
```
|
||||
time: meeting.end_time.split('T')[1]
|
||||
![]()
```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) => {
```
|
||||
return Contribution.add(contribution, { nonce: nonce++ })
|
||||
![]()
```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(tx => {
|
||||
![]()
```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] Contribution created: ${tx.hash}`);
|
||||
![]()
```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) => {
```
|
||||
.catch(error => {
|
||||
![]()
```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.error(`[hubot-kredits] Adding contribution for Zoom call failed:`, error);
|
||||
![]()
```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) => {
```
|
||||
function getContributorByZoomDisplayName(displayName) {
|
||||
![]()
```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({ site: 'zoom.us', username: displayName });
|
||||
![]()
```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 request(path) {
|
||||
![]()
```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 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) => {
```
|
||||
`https://api.zoom.us/v2${path}`,
|
||||
![]()
```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) => {
```
|
||||
{headers: {authorization: `Bearer ${zoomAccessToken}`}}
|
||||
![]()
```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) => {
```
|
||||
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) => {
```
|
||||
return request(`/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 getMeetingDetails(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) => {
```
|
||||
return request(`/past_meetings/${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) => {
```
|
||||
.then(r => r.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) => {
```
|
||||
}
|
||||
![]()
```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) => {
```
|
||||
async 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) => {
```
|
||||
const meetingDetails = await getMeetingDetails(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 participants = await getMeetingParticipants(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) => {
```
|
||||
|
||||
![]()
```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 (meetingDetails.duration < 15 || meetingDetails.participants_count < 3) {
|
||||
![]()
```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 zoom call ${data.uuid} (duration: ${meetingDetails.duration}, participants_count: ${meetingDetails.participants_count})`);
|
||||
![]()
```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) => {
```
![]() What's the case of tx being falsey (maybe makes sense to explain that in a comment)? Btw, I think we can replace the
What's the case of tx being falsey (maybe makes sense to explain that in a comment)? Btw, I think we can replace the `then` with saving the result in a variable from the `await`, like so:
```js
const tx = await createContributionFor(displayName, meetingDetails);
if (tx) log(foo);
```
![]() not sure how to best handle this one: https://github.com/67P/hubot-kredits/pull/53/files#diff-74e18db4da1da4461c9ccb134c582a3eR26 if the contributor is not found then there is no tx. not sure how to best handle this one: https://github.com/67P/hubot-kredits/pull/53/files#diff-74e18db4da1da4461c9ccb134c582a3eR26
if the contributor is not found then there is no tx.
![]() Wait, if the contributor is not found, then the promise wouldn't resolve, would it? In that case it should reject. Wait, if the contributor is not found, then the promise wouldn't resolve, would it? In that case it should reject.
|
||||
}
|
||||
![]()
```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 names = Array.from(new Set(participants.map(p => p.name)));
|
||||
![]()
```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) => {
```
|
||||
for (const displayName of names) {
|
||||
![]()
```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) => {
```
|
||||
await createContributionFor(displayName, meetingDetails);
|
||||
![]()
```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) => {
```
|
||||
const object = payload.object;
|
||||
![]()
```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(object);
|
||||
![]()
```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".