You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Thomas 882b1edf03 fix typo 9 months ago
bin first commit 10 months ago
config first commit 10 months ago
img readme 10 months ago
public first commit 10 months ago
src fix typo 9 months ago
templates first commit 10 months ago
tests first commit 10 months ago
translations first commit 10 months ago
.env.example improve replies 10 months ago
.env.test first commit 10 months ago
.gitignore first commit 10 months ago
LICENSE add name 10 months ago
README.md add db initialization in readme 10 months ago
composer.json first commit 10 months ago
composer.lock first commit 10 months ago
phpunit.xml.dist first commit 10 months ago
symfony.lock first commit 10 months ago

README.md

How to install

  1. Clone the repository

  2. In root directory copy .env.example in .env

  3. Install vendors:

    composer install

    PS: You need to install composer, just use:

    apt install composer

  4. Change the database connection

    Edit .env file, and change these lines with your values

    DATABASE_URL=mysql://db_user:db_pwd@db_host:db_port/db_name

  5. Initialize database:

    php bin/console doctrine:database:create
    php bin/console doctrine:migrations:migrate

  6. Create the bot

    a. From the website, click on preferences and then Development


    b. Click on “NEW APPLICATION”

    c. Fill the form
    (make sure the app is on read + write which are default values)
    d. Get your access token

  7. Set your token

    Edit .env and change these values

    app_host=HOST_NAME_OF_THE_ACCOUNT
    app_token=YOUR_TOKEN_HERE

    app_host is the domain of the instance hosting the bot account
    app_token is the string that you get previously (access token)

  8. Crontab

    Change the path to bin/console and set your own frequency ```

    m h dom mon dow command

    • * * * php /path/to/fedvice/bin/console read:notifications ```