Powered by Discord.js
- Install [> Node.js] v18+ (recommended) on your machine.
- Clone this repository to your machine.
- Run
npm installinside of the cloned directory. - Create a copy of
example.env, name it.env, fill the variables as instructed.- Required: See [> Discord Developer Portal] for creating a Discord bot and application.
- Run the
index.jsfile usingnode index.jsto start your bot.- Optional: You may install
pm2and runindex.jswithpm2for 24/7 uptime.
- Optional: You may install
- Invite the Discord
Botto your DiscordServerusing theinvite linklogged in the terminal / console ofindex.js. - Run the
/blackboard logincommand to connect your CUNY Blackboard account with the bot.- Note the
/blackboardcommand may be different if you have specified a differentCOMMAND_PREFIXin your.envfile.
- Note the
The Discord Bot has various slash commands to manage your Blackboard courses, assigments, alerts and more.
Simply type /blackboard in any channel to see all available commands and their respective descriptions / options.
This bot was written to be used for personal use only hence some of the limitations below.
- Each connected Blackboard account's name, session cookies, preferences and other cache data is stored in a JSON in the same directory as
index.js. - While the bot can support multiple Discord users in as many servers as the bot is a member of, there is no way to control permissions for individual users.
- While you may host the bot and allow your peers to use the bot in a shared Discord server, all users should be mindful that their Blackboard can be accessed by the host easily due to the limitations above.
- While the bot will try to keep login sessions alive for as long as possible, Blackboard can at times randomly expire a session thus you may have to re-login every once in a while to continue usage.