show the present members of a a vocal channel: !rachid present
show the absent members of a vocal channel: !rachid absent
send a customable dm to absent members: !rachid dm
he will be usefull in large meeting to check absent member that must be here or send them dm .
- Install dependencies :
npm install discord.js google-spreadsheets dotenv
- Create a Bot in discord developer portal
- Create a .env file and copy and fill those:
token= bot token
GOOGLE_SHEETS_DOCUMENT_ID= yoursheetdocid
GOOGLE_SERVICE_ACCOUNT_EMAIL=yourserviceaccountmail
sheet_id=yoursheetid
GOOGLE_PRIVATE_KEY= yourprivatekey
- Add him to your server by copying your client id where i wrote "here":
- Run it in a node environnement or host it in horuku
node index.js
1.0.1 he can now do country quiz using data from json file