The Bot enables Developers to do the following:
Add a Task to their To Do list, stored on MongoDB. Users have the option to add a:
- Description of the Task
- Assign it to a Team Member
- Set a Deadline
Change the Status of a Task on the To Do list:
- Mark as completed
- Re-assign to another Team Member
- Post to coding-help channel
Lists all the tasks entered into the database for everybody on the team
Lists all the tasks entered into the database for the user who requests their To Do List
- Enables Developers to access the OpenAI API and ask for coding help
- Also included as a feature within the coding-help channel, to enable Users to ask AI to solve their problems.
Enables a User to post a GitHub link and ask for a code review
Connect Google Calendar Enables a User to attach to their google calendar so that they can keep track of meetings
Create Meeting Enables a User to set up a meeting
To get this bot working, we need access to the following:
- Server ID of a guild
- Token of a Discord bot
- An OpenAI Key
- Enable developer mode (Discord desktop) by pressing the cog next to your profile icon to enter settings, selecting
Advanced
, and toggling on Developer Mode. - After exiting settings, right-click on the guild to which you want to add the bot and select
Copy Server ID
. Make a note of that somewhere.- Note: If you want to add the bot to someone else's guild, make sure to have their permissions first. If you don't have the required permissions, you'll also need to ask them to add the bot to the guild for you.
Assuming you're generating a Discord app for the first time:
- Login to the Discord developer portal.
- Create a New Application.
- Select your bot & click on
Bot
on the LHS menu. - Click on
Reset Token
and make a note of it for later. If you lose this token, you'll need to generate a new one. - Generate a Permission Integer by using the tool at the bottom of the Bot menu. Keep in mind that for the bot to function as intended, it needs to be able to moderate users on top of other permissions like sending & receiving messages. We recommend using the following permissions integer:
1995012435014
. - Navigating to the
OAuth2
menu on the left, make a note of theClient ID
. - Construct a URL of the following format:
https://discord.com/oauth2/authorize?client_id=CLIENT_ID&scope=bot&permissions=PERMISSIONS_INTEGER
, replacingCLIENT_ID
andPERMISSIONS_INTEGER
with the values found above. - By following the link, add the bot to the server with the same Guild Server ID. Note: if you're not an admin on the server, send this link to someone who is.
Assuming this is your first time dealing with OpenAI's API:
- After creating an OpenAI account, navigate to the API keys menu.
- Create a new Secret Key and make a note of it.
- Make sure you have some credit available.
git clone
the repository & navigate into it.- Run
npm install
to install all packages required. - Create a
.env
file and copy the contents into it from.env-template
. - Inside the
.env
file, fill in the values of the Server ID, Discord Bot Token, and OpenAI API key with the values you've acquired from following the Prerequisite steps. - Start the project using
npm start
.