Matchmaking bot to create a channel for specific participants only
usage:
!connect @person1 @person2 [...] channel name
- Know how to setup a Discord bot, and a Discord bot ID
- Node ≥ 16
- pm2
Clone repo
Create src/config.ts
with the following content
// perms = 268437552
// https://discord.com/api/oauth2/authorize?client_id=[DISCORD BOT ID]&permissions=268437552&scope=bot
export const BOT_TOKEN = ""; //Discord BOT_TOKEN
export const TOUCHPOINT_CATEGORY = ""; //Category ID under which the new channels will be created
export const BASE_ROLES = []; //Should there be a role for verified people (captchabot, etc...) insert the role ID here
Install modules and typescript
npm i
npm i -g typescript
Compile
tsc
Start with pm2
pm2 start dist/bot.js