No description
  • PHP 99.3%
  • HTML 0.7%
Find a file
2019-04-13 10:10:13 +02:00
bin first commit 2019-02-24 14:04:16 +01:00
config first commit 2019-02-24 14:04:16 +01:00
img readme 2019-03-01 17:25:06 +01:00
public first commit 2019-02-24 14:04:16 +01:00
src fix typo 2019-04-13 10:10:13 +02:00
templates first commit 2019-02-24 14:04:16 +01:00
tests first commit 2019-02-24 14:04:16 +01:00
translations first commit 2019-02-24 14:04:16 +01:00
.env.example improve replies 2019-03-03 12:15:51 +01:00
.env.test first commit 2019-02-24 14:04:16 +01:00
.gitignore first commit 2019-02-24 14:04:16 +01:00
composer.json first commit 2019-02-24 14:04:16 +01:00
composer.lock first commit 2019-02-24 14:04:16 +01:00
LICENSE add name 2019-03-02 09:43:20 +01:00
phpunit.xml.dist first commit 2019-02-24 14:04:16 +01:00
README.md add db initialization in readme 2019-03-02 09:45:04 +01:00
symfony.lock first commit 2019-02-24 14:04:16 +01:00

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