diff options
| author | Alee <alee14498@gmail.com> | 2018-02-24 14:17:44 -0500 |
|---|---|---|
| committer | Alee <alee14498@gmail.com> | 2018-02-24 14:17:44 -0500 |
| commit | 4c59b0713c54e235cdb294416876f730328342b8 (patch) | |
| tree | 97a7915d2b6fc130796a2f4111ad7e7ad5e0d56b | |
| parent | ec9d43f27b7f91597a201f524765d9d9dc0053e6 (diff) | |
| download | PokeBot-4c59b0713c54e235cdb294416876f730328342b8.tar.gz PokeBot-4c59b0713c54e235cdb294416876f730328342b8.tar.bz2 PokeBot-4c59b0713c54e235cdb294416876f730328342b8.zip | |
Fixes
| -rw-r--r-- | commands/story.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/story.js b/commands/story.js index f7a08cc..6ee0b06 100644 --- a/commands/story.js +++ b/commands/story.js @@ -1,4 +1,6 @@ exports.run = async (bot, msg, args) => { + message.guild.fetchMembers().then(guild => + { membersList = guild.members.array(); let selectedUser1 = membersList[Math.floor(Math.random() * membersList.length)].user; let selectedUser2 = membersList[Math.floor(Math.random() * membersList.length)].user; @@ -13,6 +15,7 @@ let selectedUser3 = membersList[Math.floor(Math.random() * membersList.length)]. ]; let storySelected = [Math.floor(Math.random() * stories.length)]; msg.channel.send(stories[storySelected]); + }); }; exports.conf = { |
