Firesphere

demo: https://slackarchive.silverstripe.org/slack-archive/message/256645

Show 1 attachment(s)
slackarchive.silverstripe.org  
Slack Archive - Message by Karina Gaulin | SilverStripe Users Slackarchive

SilverStripe Community Slack archive. I'm trying to import a file with the queries in lesson 15 but getting this error, does this look familiar to anyone?

Hide attachment content
Firesphere

New feature. If you're logged in, files are directly available from the archive when possible, instead of needing to log in to Slack and possibly hit an outdated file 🙂

Firesphere
  1. def download(local_file):
  2. header = {'Authorization': 'Bearer ' + slack_token}
  3. url = local_file['url_private']
  4. get_response = requests.get(url, stream=True, headers=header)
  5.  
  6. file_name = local_file['url_private'].split("/")[-1]
  7. with open('/tmp/' + local_file['id'] + file_name, 'wb') as f:
  8. for chunk in get_response.iter_content(chunk_size=1024):
  9. if chunk: # filter out keep-alive new chunks
  10. f.write(chunk)

Not too bad, seems to work! 😄 Closing in on hosting files locally if user is logged in, so they can forever be downloaded

Firesphere

If you want to test, please use #bot-test

Hels

So do we tweet the robot now? Or can we still ask it questions in slack?

Firesphere

You can still ask it questions in slack, as per usual. #bot-test is a Slack channel 😉

Firesphere

I'm planning on excluding that channel from the search results etc., so anything in there won't show up, keeping the actual results a bit cleaner 🙂

Hels

🤣🤣 Sorry didn't realise hash tags worked in other things too! It did seem odd that I would have to start tweeting the robot instead of talking to it directly in slack!!

Firesphere

Deletions are now marked but still not actively deleted. Active deletion is something I want to avoid as much as possible

Firesphere

I might do the data-mining periodically through Solr by the way... I'm not feeling like doing it all myself 😄

Firesphere

Slightly refresh of the style. Brighter, more enticing colours, and a bunch of bugfixes