Guest User

Untitled

a guest
Dec 14th, 2019
94
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Discord = require('discord.js')
  2. const client = new Discord.Client()
  3. let prefix = "."
  4.  
  5. client.login('votre token')
  6.  
  7. client.on('message', function (message) {
  8. if (message.content === ".Salut") {
  9. message.channel.sendMessage('Bonjour !')
  10. console.log('répond à .Salut')
  11. }
  12. })
RAW Paste Data