diff --git a/index.js b/index.js index ec9213e..cefbc45 100644 --- a/index.js +++ b/index.js @@ -41,12 +41,12 @@ receiver.router.get( receiver.router.post('/slack-invite', require('./endpoints/slack-invite')) const defaultChannels = [ - 'lounge', + 'lounge', 'scrapbook', 'ship', 'welcome', 'library', - 'happenings' + 'happenings', ] const getSuggestion = () => { @@ -390,7 +390,7 @@ app.start(process.env.PORT || 3001).then(async () => { /* DEVELOPMENT UTILITIES (uncomment to use) */ const { setupCaveChannel } = require('./setup/cave-channel') - // await setupCaveChannel(app) + // await setupCaveChannel(app) }) setInterval(async function () { diff --git a/interactions/startup.js b/interactions/startup.js index 3d2d49c..9cf51a1 100644 --- a/interactions/startup.js +++ b/interactions/startup.js @@ -6,12 +6,9 @@ function getEnv() { return process.env.NODE_ENV === 'production' ? 'prod' : 'dev' } - async function startup() { await client.chat.postMessage({ - blocks: [ - transcript('block.text', { text: transcript('startup.message') }), - ], + blocks: [transcript('block.text', { text: transcript('startup.message') })], channel: transcript('channels.bot-spam'), username: 'TUTORIEL', icon_url: transcript('startup.avatar'), diff --git a/util/invite-user.js b/util/invite-user.js index dc57f51..08d35b8 100644 --- a/util/invite-user.js +++ b/util/invite-user.js @@ -34,7 +34,6 @@ async function inviteGuestToSlack({ email, channels, _customMessage }) { channels: channels.join(','), }) - const res = await fetch(`https://slack.com/api/users.admin.inviteBulk`, { headers, method: 'POST', @@ -44,7 +43,6 @@ async function inviteGuestToSlack({ email, channels, _customMessage }) { return await res.json() } - async function inviteUser({ email, ip,