• Stars
    star
    6
  • Rank 2,460,852 (Top 50 %)
  • Language
    Julia
  • License
    MIT License
  • Created almost 9 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Julia REPL that interacts with Slack.com's webhook integration

Slackbot.jl

A Julia REPL that interacts with Slack.com's webhook integration.

WARNING: Use at your own risk. This is a very naive, insecure bot that is meant more as proof of concept than for production use.

Setup

  1. Set up a Slack Incoming WebHook and a Slack Outgoing WebHook.

  2. Create a config.jl in this directory that contains the following entries:

  • TOKEN = "..." #Replace this with your Slack token for your outgoing webhook
  • INHOOK = "https://hooks.slack.com/services/..." #Replace this with your Webhook URL for your incoming webhook
  • (Optional) DEBUG = true #Print debugging information to console
  • (Optional) DEFAULTPAYLOAD = Dict( #Add custom JSON entries to the returning payload to the incoming webhook "username"=>"juliatan", "icon_emoji"=>":juliatan:" )
  1. Make sure that Morsel.jl is installed in Julia.

  2. Run the script/jl.sh

Example of use

If you set up jl as the trigger word for your Slack Outgoing WebHook, you can write in a Slack channel

jl 2+2

and the bot will post

Julia input
2+2

Julia output
4

You can also encase the command sent after the trigger word in single backquotes or triple backquotes.

The reboot escape hatch

It's quite possible to bork the entire state of the current Julia session. When this happens, and if you set DEBUG = true, then sending a HTTP POST to /reboot causes the current Julia instance to terminate, in effect restarting Slackbot.jl.

More Repositories

1

backus-dijkstra-letters-1979

Images and text transcripts of the correspondence between John Backus and Edsger Dijkstra, 1978-1979. Ref: https://medium.com/@acidflask/this-guys-arrogance-takes-your-breath-away-5b903624ca5f#.j6x6ppjc8 https://news.ycombinator.com/item?id=11796557
105
star
2

jupyter-stylesheet

A CSS stylesheet for typographically improved Jupyter notebooks
CSS
44
star
3

ijulia-notebooks

My IJulia notebooks
Jupyter Notebook
33
star
4

PySGE

Low-level Python interface to Sun Grid Engine
Python
17
star
5

SecureComputation.jl

Secure multiparty computation in Julia
Julia
12
star
6

ijulia-notebooks-assorted

Assorted IJulia notebooks in various stages of usefulness for public consumption.
Jupyter Notebook
9
star
7

ArbRadixFloatingPoints.jl

Floating point numbers with arbitrary radixes (may be negative or nonreal)
Julia
5
star
8

BigFinance.jl

Analysis of high frequency quantitative data in Julia
Julia
5
star
9

julia-type-system

A nascent paper or three about the type system in Julia
TeX
4
star
10

parallel-prefix

A short paper about parallel prefix
TeX
3
star
11

paper-benchmark

A short conference paper on benchmarking
TeX
3
star
12

NetflixPrize.jl

Julia package for handling the Netflix Prize data set of 2006
Julia
3
star
13

dss-juliaintro

A introduction to Julia through a data analysis use case
TeX
2
star
14

paper-evolving-graphs1

The right way to search evolving graphs
TeX
2
star
15

planso.jl

Parallel Lanczos with Selective Orthogonalization
2
star
16

jiahao.github.io

Jiahao's homepage
HTML
2
star
17

julia-helper

Scripts to help Julia developers
Shell
1
star
18

latex-template

A template for organizing publications written in LaTeX
TeX
1
star
19

paper-copper-2016

A paper about iterative SVDs in IterativeSolvers.jl
Jupyter Notebook
1
star
20

julia-paper-arrays

Julia position paper for ARRAY '14
TeX
1
star
21

nyctaxis.jl

Some illustrative scripts showing how to do simple data science tasks on the NYC taxi cab data
Julia
1
star
22

clusterchem

Q-Chem Grid Engine handler
Python
1
star
23

godot

Nextbus real time data scraper
Python
1
star
24

statistical-computing-linguistics

A short paper about the linguistic aspects of choosing a programming language for statistical computing
TeX
1
star