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

Baguette SlackBot

  • 7 Devlogs
  • 4 Total hours

Welcomer Bot for my personal channel!
(Complete :)

Ship #2

Baguette Slackbot, :pet-baguette:

A welcomer bot for my personal channel, which can perform the following tasks-

Commands-

  • /baguette-ping : Pings the bot for it’s latency :happy_ping_sock:
  • /baguette-help : Lists all commands by the @baguette slack bot. :hc-help:
  • /baguette-dog : Fetches an image of a dawg from the dog.ceo dog API! :constipation:
  • /baguette-flip : Randomly flips Heads or Tails. :hcb-dark:
  • /baguette-quote : Fetches the quote of the day from ZEN QUOTES zen!
  • /baguette-customs-incident : Tells the lore behind the customs… (in_channel)(joke_command) :igb:

EVENT Subscriptions–

  1. Checks for user entry into my channel ONLY “Mk1A-NotDefined” and sends a welcome message. 🔒
  2. Replies with “Did someone order a FRESH BAGUETTE” to a message containing “Mk1A” and CCs me to the response message, in_channel. :fear-cat:

I would definitely update this later on but I have more projects to get to so I guess this is it! :)
Hope to keep learning :yay:

  • 5 devlogs
  • 3h
  • 5.11x multiplier
  • 14 Stardust
Try project → See source code →
Open comments for this post

51m 9s logged

After 51 minutes of fixing the readme, making the welcoming feature specific to only my channel so it doesn’t lead to abuse, and debugging this last event…

DEVLOG 7 :salute:

I would like to leave this as the last devlog as I want to focus on more stuff now! :respect:

  • Added new message_detection capabilities which trigger on any sentence containing the keyword “Mk1A”(not case sensitive) :baguette-pixie:
  • Fixed the welcoming feature to only my channel #mk1a-notdefined 🔒
  • Added local setup instructions + Updated Readme
  • Also added a .env.example file for reference! :)

Honestly, I did take some help from Gemini for debugging but that was cause I used “message:” instead of “text:” in the response block :igb:

Anyways, It was about time it was over! :byee:

0
0
7
Open comments for this post

32m 42s logged

DEVLOG 6 :peak:

ADDED CHANNEL WELCOMING FEATURES FINALLY! 🥹

  • Learned a lot of stuff in this one including events!
  • Applied member_joined_channel event to the list and had to reinstall the app to workspace.
  • Commands use app.command() but events use app.event() and differ a lot from commands (yes no shi sherlock)
  • Realized user or channel referencing is done via
    <${event.user}> or <$user_id>

Forgot to add this to the readme :wiltedrose:
Anyways, thinking of adding basic responses like those “automated workspace” ones :3c:

0
0
12
Open comments for this post

35m 10s logged

DEVLOG 5 :pet-slackbot:

Ok so added one more command which pulls the quote of the day from ZENQUOTES zen

  • Added /baguette-quote :woo:
  • Fixed the /baguette-help command (It said nasa api instead :igb: )

Need to start working on welcoming capabilities soon.
Also fixed a few more stuff? But I forgor :3d-sad-emoji:

0
0
18
Open comments for this post

19m 56s logged

DEVLOG 4 :slackbot:

ok bro who gave me free will :igb:

  • Added another Joke Command “/baguette-customs-incident” which Ig tells about the lore of my customs :wiltedrose:
  • Fixed the Readme (Still have to add local setup instructions)
  • Researched into channel-ping requirements and realized it can get messy :(
    So gonna just make it so I the person who created the channel can do it :wiggle:

Anyways, just hoping for this bot to be reviewed fast :praypray:

0
0
9
Open comments for this post

30m 22s logged

DEVLOG 3 :slackbot:

:woo: I am crine cause the bot’s ping name is still @Mk1A-welcomer bot but it’s registered as @baguette :cryin:

  • Added a new command “/baguette-flip” using Math.random() which gives a value between 0 and 1(floats included).
  • Fixed a lot of bugs cause apparently I used “:” instead of “;” :igb: (python user)
  • Learned that “response_type” can be used to send to channel too, instead of just the user!

Gonna add channel ping capabilities soon and then move on to make it actually welcome people :>

1
0
32
Ship #1

I made a slackbot under the “Make a Slack Bot” mission and completed it around 1.3 hours! :yay:
Currently these three commands work-

  • /baguette-ping : Pings the bot for it’s latency
  • /baguette-help: Lists all availaible commands for the @baguette slack bot
  • /baguette-dog : Gives a picture of a dawg :constipation:

I have a lot of more commands and api features in mind for this and hope to make it a better welcoming bot :)

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

38m 14s logged

Devlog 2 :slackbot:

Now the following commands work as of now-

  • /baguette-ping : Checks the Latency of the bot.
  • /baguette-dog : Pulls a random image of a dawg from dog.ceo
  • /baguette-help : Lists all availaible commands of the @baguette slack bot.

Alr So I have a lot planned in mind for this one, probably gonna put massive updates into this.
Gonna add the /baguette-welcome feature and try to make it automated as well.
Gonna finish the flip one as well and more api features.
Gonna ship after this one :yay:

0
0
21
Open comments for this post

34m 41s logged

Alr, I guess its stardancing time :woooo:

DEVLOG 1 :slackbot:

Alr So learnt what “Socket Mode” for bots meant and configured the slack side settings.
Apparently now it requires approval from the workspace before adding it :3c: (got it in like 2 secs but still :shrug3d: )

  • Setup the basic structure and nodejs dependencies.
  • Added commands and are currently working locally.
  • Will add a few more commands and ship it so i can progress more on it :ultrafastcatppuccinparrot:
0
0
12

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…