| bin | first commit | |
| config | first commit | |
| img | readme | |
| public | first commit | |
| src | fix typo | |
| templates | first commit | |
| tests | first commit | |
| translations | first commit | |
| .env.example | improve replies | |
| .env.test | first commit | |
| .gitignore | first commit | |
| composer.json | first commit | |
| composer.lock | first commit | |
| LICENSE | add name | |
| phpunit.xml.dist | first commit | |
| README.md | add db initialization in readme | |
| symfony.lock | first commit | |
How to install
-
Clone the repository
-
In root directory copy
.env.examplein.env -
Install vendors:
composer install
PS: You need to installcomposer, just use:
apt install composer -
Change the database connection
Edit.envfile, and change these lines with your values
DATABASE_URL=mysql://db_user:db_pwd@db_host:db_port/db_name -
Initialize database:
php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate -
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
-
Set your token
Edit.envand change these values
app_host=HOST_NAME_OF_THE_ACCOUNT
app_token=YOUR_TOKEN_HERE
app_hostis the domain of the instance hosting the bot account
app_tokenis the string that you get previously (access token) -
Crontab
Change the path tobin/consoleand set your own frequency
# m h dom mon dow command
* * * * * php /path/to/fedvice/bin/console read:notifications