Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api
slack_emojis
views
.gitignore
Pipfile
Pipfile.lock
README.md
emoji.sql
manage.py

README.md

Slats

Requirements:

  • Python 3.6
  • pip/pipenv

Usage:

First you'll have to get a slack token for your team. Write it in a file named slack_emojis/secrets.py :

TOKEN = "your-token-07655"

To install and launch the app :

pip install --user pipenv
pipenv shell
pipenv install
# create database
python manage.py migrate
# first collect of emojis
python manage.py collect_emojis
# launch django
python manage.py runserver

Eventually you'll want to run collect_emojis regularly. Using crontab :

# to get the project's python interpreter path
pipenv --venv
crontab -e

Write the path you just got here:

0 * * * * /path/to/env/python /path/to/manage.py collect_emojis
You can’t perform that action at this time.