Demo tutorial: https://youtu.be/KZzj8eHU39I
LeafMeAlone.mp4
Our project, inspired by the theme "uncovering a new leaf" 🍃, presents a Discord bot designed to usher in a fresh approach to studying. Recognizing the challenges that students and learners face in managing their time, sourcing study materials, and retaining information, we have integrated features such as Pomodoro timers, YouTube video audio streaming for educational content, text-to-speech functionality, and reminder systems. By simply using commands prefixed with '!', users can revamp their study habits, and turn over a new leaf in their academic journey 📚.
- Use the bot for effective time management by setting study and break intervals.
- Command:
!pomodoro <study_time> <break_time>
to start the timer (<study_time>
and<break_time>
are in minutes) - Stop the timer anytime with
!stop
.
- YouTube videos are a great way to turn over a new leaf by learning a new skill, get a concise summary of a YouTube video by providing its link.
- Using OpenAI's API and YouTube Transcript API, the bot summarizes the video and sends it to the user.
- Command:
!youtube <youtube_url>
.
- The bot can join a voice channel and play audio from a YouTube video.
- Commands:
!join
to join a voice channel, and!playaudio <youtube_url>
to play the YouTube video's audio.
- Cultivate your memory by sowing tasks and nurturing their growth until the deadline 🍂
- Commands:
!remind <task_name> <duration_in_seconds>
to set a reminder. - complete a task using
!completeTask <task-code>
!remind leetcode 900 // set task leetcode due in 15 minutes
!tasks // list out tasks and their task-code
!completeTask leetcode-##### // mark task as completed
!cancel leetcode-##### // cancel task
- A fun command that greets all members in a guild with customized greetings for specific members.
- Command:
!greet_all
.
... and many more to come!
Go to the Discord Developer Portal.
- Click New Application
- Name your bot and Click Create
- Go to OAuth2/General, set Authorization Method to In-app Authorization, scope to Administrator
- Go to OAuth2/URL Generator, set scope to bot, bot permission to Administrator, and copy generated URL
- Go to Bot, click Reset Tokenand Copy the bot token
- Clone this repository.
- Install the required packages using pip:
pip install -r requirements.txt
. - Set up your
.env
file with the necessary tokens (e.g.,DISCORD_TOKEN
andOPENAI_API_KEY
). - Run the bot script:
python botinit.py
.
- botinit.py
- readme.md
- requirements.txt
- Danny Liu, [email protected]
- Pardeep Bhattal, [email protected]
- Amy Cao, [email protected]
- Jenna Han, [email protected]
- Abishek Tharmapala, [email protected]
- All modules and libraries can be seen in the requirements.txt file
- Open AI Chat GPT3.5 was used for debugging code errors in the botinit.py file
Feel free to fork this repository, add your own features, and create a pull request. We're always open to improvements and new features!