Skip to content

A Trip planner discord bot built for GDSC genai workshop

License

Notifications You must be signed in to change notification settings

scienmanas/JourneyGenie

Repository files navigation

InclusiBrief

Logo

This is a discord bot developed for GDSC genai workshop. This bot is continued conversation bot made for plan trip, get information about places, etc. The bot is made using discord.py and genai API. The history and new chat can be configured by the commands provided by the bot. The bot is deployed on render and cron-jobs is used to monitor the uptime.

Folder Structure:

.
├── assets
│   └── logo.png
│   └── permissions.png
│   └── demo (Demo Images)
│      ├── 1.png till 7.png
│── .env
│    ├── TOKEN=Your Discord Bot Token
│    ├── GEMINI_API_KEY=Your Gemini API Key
├── .gitignore
├── main.py
├── app.py
├── bot.py
├── monitor_and_restart.py
├── build.sh
├── Procfile
├── LICENSE
├── README.md
└── requirements.txt

Installation and Running:

  1. Clone the repository using the following command:
git clone https://github.com/scienmanas/JourneyGenie.git
  1. Install the required dependencies using the following command:
pip install -r requirements.txt
  1. Either you can run locally or deploy it in a virtual private server, or you can configure an Arduino zero to do it, since the bot is not heavy.

  2. Create a .env file in the root directory and add the following variables:

TOKEN=YOUT_DISCORD_BOT_TOKEN
GEMINI_API_KEY=Your Gemini API Key
  1. In Testing/debugging phase :
python monitor_and_restart.py

Deployment:

  1. You can deploy the bot in a virtual private server or in a cloud platform like Heroku, AWS, etc.
  2. This bot is deployed on render and cron-jobs is used to monitor the uptime.
  3. To deployt in render:
    • build command:
      • ./build.sh
    • run command:
      • python main.py

Features:

  • This is a genai chat bot, which can be used as a travel guide or a travel planner.

Contributors:

  1. Manas

API Used:

  1. Gemini API

Note:

  • The bot is not optimized and configures, so we advise you to create your own bot and configure it according to your needs by utilizing the code. use &help to get bot commands.

  • Enable the intents so that it can read message events.

Permissions

Contributing:

The repository is open for contribution. All types of contribution are acknowledged - raising a bug issue, recommending new features as well as updating the code base. Before updating the code base raise an issue of recoomendign new feature and then can raise a pull requesting with the mentioned issue id.

License:

This project is licensed under the MIT License

Demo :

Demo 1 Demo 2 Demo 3 Demo 4 Demo 5 Demo 6 Demo 7

About

A Trip planner discord bot built for GDSC genai workshop

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published