{"size": 546, "ext": "js", "max_stars_repo_path": "commands/giveaways/reroll.js", "max_stars_repo_name": "Ayush4385/Giveaways-Bot", "max_stars_repo_stars_event_min_datetime": "2021-05-27T06:10:04.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-17T14:31:26.000Z", "max_issues_repo_path": "commands/giveaways/reroll.js", "max_issues_repo_name": "Evie4/Giveaways-Bot-1", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "commands/giveaways/reroll.js", "max_forks_repo_name": "Evie4/Giveaways-Bot-1", "max_forks_repo_forks_event_min_datetime": "2022-01-20T03:18:33.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-20T03:18:33.000Z"}
{"max_stars_count": 5, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 26.0, "max_line_length": 84, "alphanum_fraction": 0.6391941392}
module.exports = {
name: "reroll",
usage: "g!reroll <message id>",
ownerOnly: false, 
cooldown: 10000,
botPermission: [],
category: "gjveaways",
authorPermission: [MANAGE_GUILD],
aliases: [greroll],
description: "reroll a giveaway",
run: async(client,message,args) => {
const messageID = args[0];
        client.giveawaysManager.reroll(messageID).then(() => {
            message.channel.send('Giveaway rerolled!');
        }).catch(() => {
            message.channel.send('I couldn't find any giveaway on that message id');
        });
}

    
