Skip to content

Commit

Permalink
test 4
Browse files Browse the repository at this point in the history
  • Loading branch information
JShep89 committed Sep 10, 2019
1 parent 4f5972c commit 831718e
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/commands/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,22 +126,20 @@ const getSettings = function(data)
{
if (data.message.author.id === data.config.owner)
{
data.color = "info";
data.text = "__**Active Servers**__ - ";

const activeGuilds = data.client.guilds.array();

data.color = "info";
data.text += `${activeGuilds.length}\n\n`;
data.text = `"__**Active Servers**__ - "\n` +
`${activeGuilds.length}\n\n`;
botSend(data);

activeGuilds.forEach(guild =>
{
data.color = "info";
data.text += "```md\n";
data.text += `> ${guild.id}\n# ${guild.name}\n`;
data.text += `@${guild.owner.user.username}#`;
data.text += guild.owner.user.discriminator + "\n```";
botSend(data);
data.text = "```md\n" +
`> ${guild.id}\n# ${guild.name}\n` +
`> ${guild.owner.user.username}\n` +
`> ${guild.owner.user.discriminator}\n` +
"\n```";
});

const splitOpts = {
Expand Down

0 comments on commit 831718e

Please sign in to comment.