YAGSB
- 2 Devlogs
- 12 Total hours
Yet another generic slack bot.
Yet another generic slack 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.
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!