- Slack Bot
- Homepage
- Command line
-
On Debin/Ubuntu Linux
apt-get install libmysqlclient-dev
-
On MacOS
brew install mysql --client-only --universal
For developemnt or as an editable package inside a virtual environment:
source $NUGU_VENV/bin/activate
pip install -e .
NUGU_SLACK_TOKEN
: The API token for Slack botNUGU_DB_HOST
: The database server's hostnameNUGU_DB_USER
: The username to connect to the database serverNUGU_DB_PASSWORD
: The password to connect to the database serverNUGU_DB_NAME
: The database name
If DEBUG
is set to 1
, it uses a local sqlite3 database as specified in
NUGU_DB_PATH
variable.
Add the following as /SPARCS/bin/nugu
#! /bin/bash
source $NUGU_VENV/bin/activate
exec python -m nugu.cli $@
Add the following as /etc/supervisor/conf.d/nugu.conf
after modifying
the paths to match with your setup.
[program:nugu]
command=/SPARCS/nugu/run_bot.sh
user=slack-bot
environment=NUGU_VENV="/SPARCS/nugu/venv"
directory=/SPARCS/nugu
stopasgroup=true
killasgroup=true
- luan (이상국)
- samjo (조성원)
- netj (신재호)
- daybreaker (김준기)