Advertisement
yousserf

epsoid 1

May 17th, 2022
991
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const { Discord, Client , MessageEmbed} = require('discord.js')
  2. const client = new Client()
  3. const prefix = "!"
  4. const disbut = require('discord-buttons')(client);
  5. const chalk = require('chalk')
  6. const { MessageButton } = require('discord-buttons')
  7. client.login(process.env.TOKEN).catch(err => {
  8.   console.log('token is invaild')
  9. })
  10. client.on("ready", () => {
  11.   console.log(
  12. chalk.magentaBright(`logged in as ${client.user.tag}`)
  13.    
  14.   )
  15.   client.user.setActivity(`${prefix}help`, {
  16.     type: "WATCHING"
  17.   })
  18. })
  19. client.on("message", msg => {
  20.   if(msg.content.startsWith(prefix + "help")){
  21.       let embed = new MessageEmbed()
  22.       .setColor("BLUE")
  23.       .setFooter(msg.author.username,msg.author.avatarURL())
  24.       .setTimestamp()
  25.       .setTitle(`${msg.author.tag}'s Help Menu`)
  26.      .setDescription("Your Commands Here")
  27.      const button = new MessageButton()
  28.      .setStyle("url")
  29.      .setURL(`https://replit.com/@0nlyYoussef/FirebrickGrizzledMenus#index.js`)
  30.      .setLabel(`Link !`)
  31.    msg.channel.send(embed, {buttons: [button]})
  32.  }
  33. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement