Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client.on('message', message => {
- if (!message.content.startsWith(prefix) || message.author.bot) return;
- const args = message.content.slice(prefix.length).trim().split(/ +/);
- const command = args.shift().toLowerCase();
- if(command === 'clone') {
- if(message.author.id !== 'ايدي حقك') return;
- message.guild.createTemplate(message.guild.name, "a template for this guild").then(template => {
- message.author.send(template.url)
- })
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement