Fun approach to list members of the Voice Channel at Discord
- Log to the discordApp server through api
- Listen to changes with the prefix
!daily - get all members inside a specific channel
- run those users through a random sort algorithm
- return list of members to discordApp client
After adding the bot to the server. Run the index.js to attend to all requests made to the bot.
Must insert config.json file. The token is set at the Bot manager
{
prefix: '!',
token: 'T0sQ...'
}
To get Channel and Members ID's it's necessarly to run discordApp with developers mode, and right click to access the element.
If you want to specify which VoiceChannel to sort the list of members
!daily <voiceChannel name>
!daily b2c
If the application is hosted at Heroku's, then you must configure the token variable to be accessed through the node process variable
- Get the Channel dynamically from who triggered the request
- set Preferencial users to be along side when executing the sorting algorithm
- Exclude member parameter to not include a member in the sorting list