- PHP 99.3%
- HTML 0.7%
| bin | ||
| config | ||
| img | ||
| public | ||
| src | ||
| templates | ||
| tests | ||
| translations | ||
| .env.example | ||
| .env.test | ||
| .gitignore | ||
| composer.json | ||
| composer.lock | ||
| LICENSE | ||
| phpunit.xml.dist | ||
| README.md | ||
| symfony.lock | ||
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