/Discord-bot

Primary LanguageJavaScript

A discord bot "Rachid La Garde" that :

 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 uses data from a google sheet doc of all members:

Fonction:

he will be usefull in large meeting to check absent member that must be here or send them dm .

🛠 Installation & Set Up 🛠

  1. Install dependencies :
 npm install discord.js google-spreadsheets dotenv
  1. Create a Bot in discord developer portal
  2. 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
  1. Add him to your server by copying your client id where i wrote "here":

https://discord.com/api/oauth2/authorize?client_id=here&permissions=0&scope=bot%20applications.commands

  1. Run it in a node environnement or host it in horuku
node index.js

Updates:

1.0.1 he can now do country quiz using data from json file