SHARE
TWEET

Untitled

a guest Dec 14th, 2019 82 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top