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

YAGSB

  • 2 Devlogs
  • 12 Total hours

Yet another generic slack bot.

Open comments for this post

2h 4m 33s logged

As mentioned before, being intrusive on the slack is a major issue for me. I spent a while working on this (some of the time working on this was counted in my last devlog which had 10h on it).

Now you can put the flags /bot [–disable-{here|me|channel} #channelname]
Which lets you disable the bot for the current channel, yourself, or a specified channel. The same options exist for [–enable-{here|me|channel}].

Additionally, I spent some time using blockit (a slack tool) to make this mini UI with a disable button.

The disable works by saving to a json file the channel/user ID and an enabled or disabled string (so there is room for other options as well!)
Interestingly, I didn’t have to differentiate between user IDs or channel IDs. The user just puts @user or #channel and the ID is passed directly as a string to the bot.

As mentioned before, being intrusive on the slack is a major issue for me. I spent a while working on this (some of the time working on this was counted in my last devlog which had 10h on it).

Now you can put the flags /bot [–disable-{here|me|channel} #channelname]
Which lets you disable the bot for the current channel, yourself, or a specified channel. The same options exist for [–enable-{here|me|channel}].

Additionally, I spent some time using blockit (a slack tool) to make this mini UI with a disable button.

The disable works by saving to a json file the channel/user ID and an enabled or disabled string (so there is room for other options as well!)
Interestingly, I didn’t have to differentiate between user IDs or channel IDs. The user just puts @user or #channel and the ID is passed directly as a string to the bot.

Replying to @pi

0
1
Open comments for this post

10h 24m 2s logged

So believe it or not, the hardest part about this project was the social aspect.

I make this slack bot that checks if the first letters of each word in a message spell something, thinking this will maybe happen to one person a day, or even less. Very uncommon. I even made sure the words had to be at least four letters so it didn’t trigger as often.

So I leave this bot going for about 12 hours while I sleep. I wake up and it has replied to 42 different messages.

I’m so sorry if that was you! It has been stopped!

So believe it or not, the hardest part about this project was the social aspect.

I make this slack bot that checks if the first letters of each word in a message spell something, thinking this will maybe happen to one person a day, or even less. Very uncommon. I even made sure the words had to be at least four letters so it didn’t trigger as often.

So I leave this bot going for about 12 hours while I sleep. I wake up and it has replied to 42 different messages.

I’m so sorry if that was you! It has been stopped!

Replying to @pi

0
3

Followers

Loading…