You are browsing as a guest. Sign up (or log in) to start making projects!

Vector the slack bot

  • 4 Devlogs
  • 5 Total hours

Very Efficient Communications, Tracking, Operations, and Reporting (VECTOR) bot

Ship #1

Vector is a multi purpose Slack bot for the Hack Club workspace.

There are a total of 16 things that vector can do, one of them being @vector which triggers an AI chat powered by Meta's llama 3.1 8b instant.

I faced 3 challenges:
a. Deploying to Nest, I had never used ssh before but the guide helped me. I was troubled by the stuff which wasn't in the guide for example I didn't know that I had to create the .config/systemd path myself, my mind was stuck on "cd ~/.confog" and moreover I had to install npm and git.

b. THE REMINDERS FEATURE, this took the longest time because I faced so many bugs (which were my fault). The local reminders.json file wasn't being updated which led to me receiving DMs from Vector every single minute.

c. AI Chat, my initial prompt was so bad lol, the llm wasn't using channel context properly, and to differentiate between thread context history and channel history.

I am most proud of the reminders feature.

I recommend trying `/vector-help` or just @vector to get started with the bot in it's testing channel linked as the demo link.

Try project → See source code →
Open comments for this post

1h 18m 9s logged

Devlog #4 (Day 3)

Vector can talk now 🗣️🗣️

Added vector mentions, just @vector and say anything you like, it’s powered by groq and it also pulls the last 10 messages from the chat or thread for context.

“Tries” to use real names instead of user ids but that is still under progress.

Replies in threads 👍

and I wrote a proper README, edited package.json/package-lock.json as the names wasn’t updated there

LIST OF ALL CURRENT COMMANDS:

/vector-ping
/vector-weather
/vector-define
/vector-remind
/vector-reminders
/vector-unremind
/vector-apod
/vector-earth
/vector-github
/vector-leetcode
/vector-catfact
/vector-joke
/vector-hello
/vector-about
/vector-help
@vector

Total: 16

Now all i have to do is find a better weather api as someone told me that wttr.in isn’t that accurate and I also have to still make changes to the groq section, specifically the prompts and id formatting and how it reads the context

Devlog #4 (Day 3)

Vector can talk now 🗣️🗣️

Added vector mentions, just @vector and say anything you like, it’s powered by groq and it also pulls the last 10 messages from the chat or thread for context.

“Tries” to use real names instead of user ids but that is still under progress.

Replies in threads 👍

and I wrote a proper README, edited package.json/package-lock.json as the names wasn’t updated there

LIST OF ALL CURRENT COMMANDS:

/vector-ping
/vector-weather
/vector-define
/vector-remind
/vector-reminders
/vector-unremind
/vector-apod
/vector-earth
/vector-github
/vector-leetcode
/vector-catfact
/vector-joke
/vector-hello
/vector-about
/vector-help
@vector

Total: 16

Now all i have to do is find a better weather api as someone told me that wttr.in isn’t that accurate and I also have to still make changes to the groq section, specifically the prompts and id formatting and how it reads the context

Replying to @Aaryaman

1
25
Open comments for this post

2h 9m 11s logged

Devlog #3 (end of day 2)

VECTOR HAS BEEN DEPLOYED 🎊 (nest application got approved)

man deployment took quite some time, I ran into a few problems, I created the path for systemd which i assumed was already supposed to exist, i installed git, node, npm, etc…

Added more meaningful slack commands:

  1. REMINDERS!!!
    a. reminders are stored in a JSON database and periodically checks for reminders that are due. When the scheduled time arrives, the bot shoots a dm to the user
    b. the time though has to be in UTC, working on that

  2. WEATHER!
    type ur city and boom

  3. DEFINE!
    defines any word you want

minor changes:
/vector-about: links to github repo and this project
updated /vector-help of course
there is APOD video support
better command ui

LIST OF ALL CURRENT COMMANDS:

  • /vector-ping - Check if Vector is online

  • /vector-weather - Get current weather information for a city

  • /vector-define - Look up dictionary definitions

  • /vector-remind “” YYYY-MM-DD HH:MM - Create a reminder (UTC)

  • /vector-reminders - List your active reminders

  • /vector-unremind - Cancel a reminder

  • /vector-apod- NASA Astronomy Picture of the Day

  • /vector-earth - Latest EPIC Earth image from NASA

  • /vector-github - View GitHub profile information and recent repositories

  • /vector-leetcode - Get today’s LeetCode Daily Challenge

  • /vector-catfact - Random cat fact

  • /vector-joke - Random joke

  • /vector-hello - Say hello to Vector

  • /vector-about`- Information about Vector, creator links, and project pages

  • /vector-help - Display all available commands

Total: 15

Devlog #3 (end of day 2)

VECTOR HAS BEEN DEPLOYED 🎊 (nest application got approved)

man deployment took quite some time, I ran into a few problems, I created the path for systemd which i assumed was already supposed to exist, i installed git, node, npm, etc…

Added more meaningful slack commands:

  1. REMINDERS!!!
    a. reminders are stored in a JSON database and periodically checks for reminders that are due. When the scheduled time arrives, the bot shoots a dm to the user
    b. the time though has to be in UTC, working on that

  2. WEATHER!
    type ur city and boom

  3. DEFINE!
    defines any word you want

minor changes:
/vector-about: links to github repo and this project
updated /vector-help of course
there is APOD video support
better command ui

LIST OF ALL CURRENT COMMANDS:

  • /vector-ping - Check if Vector is online

  • /vector-weather - Get current weather information for a city

  • /vector-define - Look up dictionary definitions

  • /vector-remind “” YYYY-MM-DD HH:MM - Create a reminder (UTC)

  • /vector-reminders - List your active reminders

  • /vector-unremind - Cancel a reminder

  • /vector-apod- NASA Astronomy Picture of the Day

  • /vector-earth - Latest EPIC Earth image from NASA

  • /vector-github - View GitHub profile information and recent repositories

  • /vector-leetcode - Get today’s LeetCode Daily Challenge

  • /vector-catfact - Random cat fact

  • /vector-joke - Random joke

  • /vector-hello - Say hello to Vector

  • /vector-about`- Information about Vector, creator links, and project pages

  • /vector-help - Display all available commands

Total: 15

Replying to @Aaryaman

0
48
Open comments for this post

1h 2m 51s logged

Devlog #2 (Day 2)

Vector has officially been used by other humans in the slack workspace, yay

Since the last devlog, I have added:

/vector-apod
/vector-earth
/vector-github
/vector-leetcode

I also built Slack Block Kit messages with images, allowing Vector to render images directly in chat instead of just showing a URL.

Had to debug the /vector-earth command a LOT but realized that my GET request url was wrong 😭

Current command list:

/vector-ping
/vector-hello
/vector-catfact
/vector-joke
/vector-apod
/vector-earth
/vector-github
/vector-leetcode
/vector-help

I still need to host it on Nest though

Devlog #2 (Day 2)

Vector has officially been used by other humans in the slack workspace, yay

Since the last devlog, I have added:

/vector-apod
/vector-earth
/vector-github
/vector-leetcode

I also built Slack Block Kit messages with images, allowing Vector to render images directly in chat instead of just showing a URL.

Had to debug the /vector-earth command a LOT but realized that my GET request url was wrong 😭

Current command list:

/vector-ping
/vector-hello
/vector-catfact
/vector-joke
/vector-apod
/vector-earth
/vector-github
/vector-leetcode
/vector-help

I still need to host it on Nest though

Replying to @Aaryaman

1
13
Open comments for this post

44m 6s logged

Devlog #1

Started work on Vector the Slack bot

So far I’ve:

followed the tutorial 😭

Added slash commands:
/vector-ping
/vector-catfact
/vector-joke
/vector-hello
/vector-help

Added global error handling

Today was Day 1 of building this bot. I have 0 experience making slack bots but I’ve made a few discord bots before.

It’s not much yet but I’ll take it.

Devlog #1

Started work on Vector the Slack bot

So far I’ve:

followed the tutorial 😭

Added slash commands:
/vector-ping
/vector-catfact
/vector-joke
/vector-hello
/vector-help

Added global error handling

Today was Day 1 of building this bot. I have 0 experience making slack bots but I’ve made a few discord bots before.

It’s not much yet but I’ll take it.

Replying to @Aaryaman

1
8

Followers

Loading…