Git Product home page Git Product logo

slack-patron's Introduction

Slack Patron

Publish Viewer Docker Image Publish Logger Docker Image Publish Connector Docker Image Publish ElasticSearch Docker Image

  • Record Slack messages in MongoDB.
    • You can also import data from backup file.
  • Web interface for searching messages.

Quick Usage

  1. Install Slack Patron App and get access token for your Slack workspace

  1. Run docker compose up with ./docs/docker-compose-quick.yml
$ wget https://raw.githubusercontent.com/tyage/slack-patron/master/docs/docker-compose-quick.yml
$ export SLACK_PATRON_SLACK_TOKEN=[YOUR TOKEN HERE]
$ docker compose -f ./docker-compose-quick.yml up
  1. Visit http://localhost:9292

Docs

Special Thanks

This product receives a lot of contribution from TSG ❤️

https://github.com/tsg-ut/slack-patron

slack-patron's People

Contributors

cookie-s avatar dependabot[bot] avatar hakatashi avatar hideo54 avatar ishitatsuyuki avatar m--- avatar mactkg avatar moratorium08 avatar pizzacat83 avatar sutatoruta avatar tyage avatar yosshi999 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

slack-patron's Issues

ログ取りもうちょっとマシに

  • 既にとったログは取得しない(チャンネルの最初のログまでと最後のログより前をとる)
  • デバッグログをちょっときれいに
  • sleep入れる

How do I get a backup from earlier version?

I was using a version from ~Aug 15th, and just did a "git pull" and a "docker-compose down/up", and it seems my messages from before are gone. I assume they are still somewhere (I hope). Is there a method to import those messages back in?

Font-family behind proxypass

For some reason I'm getting default fonts. Can you give me a quick instruction on how to apply for example font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif to body?

slackpatron peikko us_CHANNELS_NOT_FOUND

flux

fluxしてくれ

use sidekiq to logger job

If the service running with passenger, logger thread will be killed by the passenger!

To avoid this, use sidekiq to the logger job.

How to get the rtm scope?

Hey! I am struggling to make a slack app with the realtime permissions. The "Slack Patron" app installed in my workspace has these permissions --

Receive all events from < workspace_name > in realtime, granted by 1 team member

How can I add this scope to my slack app? Can you guide me?

Ruby 2.4.0 no longer supports json 1.8.3

Ruby 2.4.0 (current stable version) no longer supports json 1.8.3, so if the user use 2.4.0 ./viewer/setup.sh will fail.

Workaround:

gem 'json'

to

gem 'json', github: 'flori/json', branch: 'v1.8'

(because v1.8.5 is compatible with Ruby 2.4.0.)

(素晴らしいツールをありがとうございます。)

import機能

slackログのexport機能があったので、そのzipをimportするようにしよう

http://localhost:9292/にアクセスしてもNotFound

セットアップの手順を読み、初期設定は終わったと思うのですが

http://localhost:9292/

へアクセスすると

Not Found: /

とだけ表示されます

$ bundle exec rackup

を実行している端末には

[2016-03-31 ::] INFO WEBrick 1.3.1
[2016-03-31 ::
] INFO ruby 2.1.2 (2014-05-08) [x86_64-linux-gnu]
[2016-03-31 ::] INFO WEBrick::HTTPServer#start: pid=2765 port=9292
*
...* - - [31/Mar/2016:::** +0900] "GET / HTTP/1.1" 404 - 0.0014
_._.
.** - - [31/Mar/2016:::** +0900] "GET / HTTP/1.1" 404 - 0.0053

というログが表示されています

事前にアーカイブしたzipファイルを

$ bundle exec ruby app/import.rb PATH_TO_BACKUP_FILE

で読み込ませております
(mongodbの方には上記コマンドで読み込まれたと思われるユーザやチャンネルが登録されていました)

config.yml
内のtoken、secretは修正しています
(上記で読み込ませたアーカイブのtermに対応したtokenを
https://api.slack.com/web#authentication で取得して設定しています)

当方の環境は

$ cat /etc/redhat-release
CentOS release 6.7 (Final)
$ ruby --version
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux-gnu]
$ mongod --version
db version v2.6.12
$ redis-server --version
Redis server v=3.0.7 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64
build=5ece30e075eed8d2
$ node --version
v0.10.42

となります

show bot name

if bot id is given(such as B0XXXXXXX), show the name of bot

Logger container keeps stopping

The viewer and mongo containers seem to be stable and stay up for a while, but I keep finding that my logger container stops randomly. I noticed a websocket disconnected message as one of the last entries in the log, could it be related to that?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.