1
0
Fork
You've already forked fedvice
0
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