Skip to content

5sansiva/Timewise

Repository files navigation

TimeWise Calendar Bot

A Calendar app with an AI bot that helps manage your calendar and schedule through simple commands.

📋 Prerequisites

Before running this project, make sure you have the following installed:

  • Node.js
  • PostgreSQL
  • npm

🚀 Getting Started

Database Setup

  1. Install PostgreSQL if you haven't already
  2. Create a new database
  3. Locate the TimeWiseDB_backup.sql file in the root directory
  4. Restore the database using:
psql your_database_name < TimeWiseDB_backup.sql

Environment Setup

  1. Create a .env.local file in the root directory
  2. Add the following environment variables (Use port 5433 if 5432 doesn't work):
# Add your environment variables here
# Database configuration
DB_HOST=your_host
DB_USER=your_username
DB_PASSWORD=your_password
DB_NAME=your_database_name
DB_PORT=5432

# Discord configuration
DISCORD_TOKEN=your_discord_bot_token
DISCORD_CLIENT_ID=your_client_id

Installation

  1. Clone the repository
https://github.com/5sansiva/CS-3354.git
  1. Install dependencies
npm install

🔧 Running the Application

The application needs to be run in two parts:

  1. Start the Discord bot:
npm run bot
  1. In a separate terminal, start the development server:
npm run dev

🤖 Using the Discord Bot

  1. Join our Discord server: TimeWise Server
  2. Navigate to the #testing channel
  3. Use the bot with the following syntax:
!calendar {command}

This is a Next.js project bootstrapped with create-next-app.

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7