f3nation-community / slackblast Goto Github PK
View Code? Open in Web Editor NEWSlack App to easily create BackBlasts
Slack App to easily create BackBlasts
Great tool! One question: is there any way to edit the bost's post after it is posted to the channel? For example, Q makes an error and wants to fix it, etc.
I am hoping there is some way to set the permissions for the bot's posts but not finding much after googling on this.
As I expand features of Slackblast, I'd like to make them more modular so it's easier to work on them independently. So for example, I'd probably break out forms.py
, moving the forms to their respective feature modules. Same with actions.py
?
Had a request / some ideas for adding a welcome message for guys who join the slack space; Slack has a trigger event for this. The basic idea:
/config-welcome-message
or similarIn tandem with Weaselbot's schema, the idea would be to automatically post in the PAX's home region (selected channel) when they post DR. This would eliminate the need for that PAX to create a DR post, as well as share with their home PAX what they are up to.
handle_backblast_post
has gotten way too long and complicated due to its many entry points. It probably makes sense to separate out the entry points and modularize the common functionality.
Add a config menu within /config-slackblast for Weaselbot region settings
Slack doesn't have a filepicker, but we could:
Will need to think about how to do this for email, since those are sent right away when making a backblast. Played around with 1) a fair bit... bad news is that it is going to be either very messy or impossible :( Putting it on hold for now to work on other stuff
User is able to successfully post a new backblast with long text, but when you attempt to edit the backblast (ex: add a missing PAX to the list), the following Slack API error is thrown:
The request to the Slack API failed. (url: https://www.slack.com/api/chat.update)
The server responded with: {'ok': False, 'error': 'msg_too_long'}
When adding a numeric custom field, the "options" field is required. Ideally, this would be dynamic to remove this field if numeric or freeform is selected.
Planning to fully implement QSignups within Slackblast. While I'm at it, I'd like to align with our future state data format (https://erd.dbdesigner.net/designer/schema/1711455527-f3-future-state), which has the added benefit of addressing many of the feature requests for QSignups.
Lots of possible synergies down the road :)
It would be good to surface some errors to users so they can help diagnose. Currently, most of the time it will fail silently.
Had an idea to add an HC button to preblasts. When clicked, it would:
@moneyball
is in!" kind of thing)Background
We maintain two 3rd-F locations as channels for 1) preblasts and 2) qsignups. We don't want these two channels processed as "workouts" by PAXminer. These two channels are NOT set as AOs in the database AND paxminer isn't in the channel.
Issue
PAXMiner appears to be processing the data from the backblast. These backblasts were entered using the /backblast command and have the buttons at the bottom. When I say "appears," I mean that PAXMiner is counting the Q stats for these channels and including it in the report on the 1st-F channel as well as the individual 3rd-F channels. I assume the same is true of the PAX listed therein.
Resolution
If the issue is caused by using the /backblast command, then ensure /backblast command is checking for the AO flag in the database before processing the backblast. Then again, this issue might not exist at all (can't remember if I recently fixed these flags in the database #old).
Griswold, F3xT
Users usually create preblasts the day before. New users usually forget to update the date, resulting in confusion. Would it be easy to make the default date be tomorrow?
Would it be possible to add an option for uploading a File (such as Boy Band photo/video for NOR)?
When "Lock editing of backblasts?" is set to "Yes" and an unauthorized person (not an admin/q/poster) clicks "Edit this backblast" button, the following error is thrown: "argument of type 'NoneType' is not iterable.
It could possibly be in the following function:
slackblast/slackblast/features/backblast.py
Line 635 in 48a33e1
Link to Slack thread discussion on this error: https://f3nation.slack.com/archives/C01HCL3VBEG/p1719857290995339?thread_ts=1712258604.289599&cid=C01HCL3VBEG
There was a request to allow videos... I'm somewhat pessimistic on this, as video blocks (https://api.slack.com/reference/block-kit/blocks#video) require an embed link (like Youtube)... meaning we might have to upload them to Youtube or something. There is a file block (https://api.slack.com/reference/block-kit/blocks#file) but I'm guessing that wouldn't be as useful
As a Q submitting the backblast, I would like the form to separate out FNG field with “Not In Slack” field so that it is clearer what to do with PAX that are not in Slack and thus not taggable.
Humbly requested by Dilfer (Puget Sound) and favored also by Huggies (Phoenix, AZ).
Project is on Python 3.8, it would probably be worth updating soon... I'm hoping that we can avoid changing the Lambda function URL, but that may not be avoidable.
Also want to move to Poetry for dependency management.
Hello,
I'm not sure if I'm in the right place for this, but I'm having an issue with the Strava integration. When I click on the "Connect to Strava" button in the SlackBlast, a pop-up window launches, and says "Loading, do not close", but just hangs there indefinitely.
I've tried logged out of Slack and back in, and that did not help. I've tried it from the Slack mobile app as well, and that has the same results.
Is there a way to fix this, or things I could try?
Basically the ability to append custom text to the end of the email. Could be used for postie or other.
So it wouldn't be postie specific but you could use custom tokens in this "setting" that would replace bits with values from slackblast:
#category: {{ the_ao }}
For regions that like all their backblasts in a single channel, could we have a particular channel as an option for default destination? Would also want this for preblasts.
Got a request to add an option to email preblasts as well as backblasts
Let's pretty up those wordpress posts!
Our region has requested a similar app for preblasts (which we use for nearly every beatdown). Looking for just some general guidance on best design approach for this. Full disclosure: I do mostly scientific programming in Python and webapp skills are fairly rudimentary. I did manage to get the slackblast app installed for us on Azure App Services and running in our slack workspace.
Thoughts on options:
Thanks for the great app and any help on this design.
I'm not fond of how many fields I have on slackblast.regions
now... Given the Future State data layout (https://erd.dbdesigner.net/designer/schema/1711455527-f3-future-state), I'd like to explore of moving all of the region settings into a single json field.
Pros:
orgs
Future State layoutCons:
This would be a fun little "just because"... a command (/my-stats
) that brings up a modal with a bunch of metrics / charts that summarize your posting numbers.
Add the ability to select users as a custom field
If there is the possibility of adding a 2nd Q, then PAXMiner will consider the 2nd name the Co-Q.
Can we have the Q field allow a primary and secondary name to be chosen?
I have an idea for making it easier to tag manual achievements in Weaselbot via Slackblast. It would be a new command like /tag-achievement
, which would load a form that has a dropdown for selecting an achievement from that region's achievement_list
(if it exists). This would write directly to achievements_awarded
rather than making a backblast to be picked up by Weaselbot.
Because tools like PAXMiner are looking for a whole number, e.g. 7, then 'seven' should not be allowed in the slackblast post.
Proposals:
a) we can make maximum length 3 so 100 can be typed in but not seven. May catch a lot of these cases.
b) can look into updating the label to make it clear a number is expected. May also add a validation message depending on Slack's modal capability - which increases the interactivity and number of communications between slack and the server and overall making it nearly twice as complicated
c) the server can read the input and if it is not an integer, then server can parse the PAX and non-PAX names by hand to come up with the count
Especially as we add more features, I would like to make the config menu a little more streamlined. My thought is to use sub menus for each category of the app (email settings, welcome settings, custom field settings, etc)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.