help.js 1.4 KB

1234567891011121314151617181920212223242526272829
  1. module.exports = function(m) {
  2. /**
  3. * Récupération du fichier config
  4. */
  5. const config = require('../config');
  6. /**
  7. * Vérification de la commande, si help a été tapé alors contineur
  8. */
  9. if (m.command !== "help") return false;
  10. /**
  11. * Création du message embed fixe, présentation des commandes
  12. */
  13. const embed = {
  14. "title": "Help, commands & informations",
  15. "description": "All the Admin commands : \n `!user add @user` : allow someone to use the bot & the calls\n`!user delete @user` : remove someone or an admin from the bot \n`!user info @user` : get infos from a user \n`!user setadmin @user` : set a user to admin \n\nAll the Users commands : \n`!secret yoursecretpassword @user` : set a user to admin without been admin \n`!call phonenumber service` ou pour exemple `!call 33612345678 paypal` \npermet de lancer un appel vers le numéro de téléphone et get le code\n\nThe differents call services supported :\n`Paypal`\n`Google`\n`Snapchat`\n`Instagram`\n`Facebook`\n`Whatsapp`\n`Twitter`\n`Amazon`\n`Cdiscount`\n`Default` : work for all the systems\n`Banque` : bypass 3D Secure",
  16. "color": 11686254,
  17. "timestamp": "2020-12-27T08:36:37.450Z",
  18. "footer": {
  19. "text": m.user
  20. }
  21. };
  22. /**
  23. * Envoi du message embed
  24. */
  25. return m.message.channel.send({ embed });
  26. }