SHARE
TWEET

Untitled

a guest Jul 19th, 2019 54 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("token");
  6.  
  7. client.on("message", message =>{
  8.      const args = message.content.split(' ');
  9.      var msg = message.content;
  10.      switch (msg){
  11.         case prefix + "help":
  12.             message.channel.send(":arrow_right: **AIDE**");
  13.             message.channel.send(`Prefix actuel : **${prefix}**. Pour le changer, faites ${prefix}prefix **<prefix>**.`);
  14.             break;
  15.         case prefix + "prefix":
  16.             prefix = args[1];
  17.             message.channel.send(":white_check_mark: Le prefix à été modifié !");
  18.             break;
  19.      }
  20. })
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top