{"size": 461, "ext": "js", "max_stars_repo_path": "commands/save.js", "max_stars_repo_name": "Lazyuki/DiscordStatsBot", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "commands/save.js", "max_issues_repo_name": "Lazyuki/DiscordStatsBot", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "commands/save.js", "max_forks_repo_name": "Lazyuki/DiscordStatsBot", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.05, "max_line_length": 77, "alphanum_fraction": 0.6507592191}
module.exports.name = 'save';

module.exports.alias = [
  'save'
];

module.exports.isAllowed = (message, server, bot) => {
  if (message.guild.id != '293787390710120449') return false;  // My server  
  return message.author.id == bot.owner_ID;
};

module.exports.help = 'Save the server state.';

module.exports.command = (message, _, bot) => {
  if (message.author.id != bot.owner_ID) return;
  for (var s in bot.servers) {
    bot.servers[s].save();
  }
};
