mbd-s / artbot Goto Github PK
View Code? Open in Web Editor NEWA custom bot integration that brings art to Slack.
A custom bot integration that brings art to Slack.
Make sure to document both how to setup the application (secret keys, seed tasks, etc) as well as how to run the thin server. Two months from now you'll be trying to remember yourself!
The .alert-error
class has 3 different styles assigned to it, across these files:
Due to the default behavior of the asset pipeline, all three of these files are loaded/applied to every page on your site, meaning likely only the style in application.css.sass
is being applied. Given that this is a site-wide style, and not resource-specific, it makes sense to keep it in application.css.sass
Pick one and stick to it!
Currently there is a .css.sass
file, as well as .scss
files
You're in a good position to refactor artbot.rb
.
One thing that stands out is that every message hash shares the same type
and channel
:
{
type: 'message', # always the same
text: "https://slack-artbot.herokuapp.com/arts/#{@@current_art.id}", # this changes
channel: data['channel'] # always the same
}
One approach would be to use the merge
method to establish some defaults, i.e.:
defaults = {"default": "info"}
config = {"specific": "data"}
defaults.merge(config) # {"default": "info", "specific": "data}
This allows you to both set, and override default configurations.
As you go through, keep in mind Sandi Metz rules: https://robots.thoughtbot.com/sandi-metz-rules-for-developers
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.