how to use the random image command

I’m trying to do a random picture selection using my computer files instead of internet ones.

Here is my beta code:

client.on('message', message => {
    if (message.content.startsWith('L!pat')) {
        let targetMember = message.mentions.members.first();
        if (!targetMember) return message.reply('you need to tag a user in order to pat them!!');
        // message goes below!`${targetMember.user}, You just got a pat!"`);{files:["./pats/pat.gif"]})
        ranfile = Math.floor(Math.random() * file.length);;
        //let embed = new Discord.RichEmbed()

105 thoughts on “how to use the random image command”

Leave a Comment