Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A script to see who's created the most slack emojis on your team. Paste this into the console on the `customize emojis` page on slack.
class Author {
constructor (name) {
this.name = name
this.count = 0
}
increase () {
this.count++
}
}
var authors = jQuery('.author_cell').map((i, el) => {
return jQuery(el).text().trim()
}).toArray().reduce((memo, name) => {
memo[name] = memo[name] || new Author(name)
memo[name].increase()
return memo
}, {})
console.table(Object.values(authors))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment