SlackThings
- 4 Devlogs
- 3 Total hours
Things I want in Slack using the Flaron API!
Things I want in Slack using the Flaron API!
Today I threw (metaphorially) a README.md together and added a licence. It includes all details to run / host this on any machine (in theory) I did this all by hand!
just a note for reviewers, i originally used main.py to write this project but renamed it to app.py as per slacks guidence so if hackatime data look meh than ig this is why 😭
whoops, i accidently sent before i typed anything
so while coding i was in a huddle where @FreeformWave kept on drawing all over my screen 😭!
I added in /thing where you can get basic bot stats and stuff
I fixed some crap with channel ids and user id’s so it is smoother.
copilot helped with some more regex and splicing in python
finally i made it all look nice
So I added in /promote to bump up mcg to full members. I have no idea how the official bannana sqaud does it but this works, i think. Also worked on the counting channel stuff. then i minimally used claude to fix some bugs 
Their is something odly chilling about working in your cold bedroom, at 3am, with music playing quietly. The threat of your folks (old spek for parents) walking in and shouting at you that makes perfect for coding.
Slack has just introduced an update where channel totals now show the total member count including clankers (bots), so I built another one to fix that. (this may have been a thing for a while but i never noticed)
While searching for fixes my first idea was a Slick plugin but that would be too hard for my pea brain. I was taking a gander (look) at the flaron api reference and found a GET thingy to find channel member, however you need a channel ID which is awfully difficult to get from a message, seriously, I have no clue how Slick does it. I setled on the Channel by Name one which gives me other stats I can’t be asked to toutch.
It works, I used copilot to fix a random bug with json and borrowed code from another slack bot repo. This project is made to just have fun with the flaron api and find out what I can do.
It also fixes a mild problem I have. I want to see the clanker free member count of my personal channle #freddies-castle (you should join frfr). This allows me to do this without opening up chrome. I have no clue how to impliment this with private channels and their may be a better wait with slack conversation api crap, but, as i said, it works
more to come, their are other flaron tools we can test out, any question, advice or venting, comment it gng