Slack-Bot

SlackyBOT

This project was built during the StarDance Hack Club challenge.

Node.js Gemini AI License

Important-

I made SlackyBOT because I wanted to understand how Slack apps and slash commands work. Along the way, I added features like Gemini AI, weather updates, memes, jokes, and other small commands just for fun and learning.


Why I create this project?

This project was created to learn:


Developed as part of the StarDance Hack Club challenge.

๐Ÿ“‹ Available Commands

Command Description
/hbsc-help Display all available commands
/hbsc-ping Check bot latency
/hbsc-sum <a> <b> Add two numbers
/hbsc-minus <a> <b> Subtract two numbers
/hbsc-multiply <a> <b> Multiply two numbers
/hbsc-divide <a> <b> Divide two numbers
/hbsc-joke Get a random joke
/hbsc-funfact Get a random fun fact
/hbsc-meme Generate a random meme
/hbsc-coinflip Flip a coin
/hbsc-weather <city> Get weather information
/hbsc-gemini <question> Ask Gemini AI

Special Command Previews

Help Command

Help Command

Gemini AI Response

Gemini Response

Weather Report

image

Meme Generator

image

AI Assistant Demo

image

Meme Response Example

Meme Response

Live Demo & Testing

How to test it?

Notes

Have fun trying out SlackyBOT! ๐Ÿš€


Installation

1. Clone the repository

git clone https://github.com/Abhiudaymaurya/Slack-Bot.git
cd Slack-Bot

2. Install dependencies

npm install

3. add environment variables

Create a .env file:

SLACK_BOT_TOKEN=your_bot_token
SLACK_APP_TOKEN=your_app_token
GEMINI_API_TOKEN=your_gemini_api_token

4. Start the bot

npm start

๐Ÿ›  Built With


Resources I Used


Made by Rivaan Maurya (Abhiuday Maurya)

License

https://github.com/Abhiudaymaurya/Slack-Bot/blob/main/LICENSE.txt

This project is licensed under the MIT License .