Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down Expand Up @@ -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 () {
Expand Down
5 changes: 1 addition & 4 deletions interactions/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
2 changes: 0 additions & 2 deletions util/invite-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -44,7 +43,6 @@ async function inviteGuestToSlack({ email, channels, _customMessage }) {
return await res.json()
}


async function inviteUser({
email,
ip,
Expand Down