Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var texts = guild.getTextChannels().length;
- var voices = guild.getVoiceChannels().length;
- var now = new Date();
- var days_in_year = 0;
- for (var i = 0; i < now.getMonth(); i++)
- days_in_year += [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][i];
- days_in_year += now.getDate();
- var days_left = 366 - days_in_year;
- var channel_creation_rate = 1 / (Math.random() * 50 + 25);
- var expected = (texts + voices) + days_left * channel_creation_rate;
- expected = Math.round(expected);
- var message = "There are "
- + (texts + voices)
- + " channels on Earth's Place so far! ("
- + texts
- + " text channels and "
- + voices
- + " voice channels)\nI am expecting "
- + expected
- + " by the end of the year.";
- channel.message(message);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement