# README
Themer wordpress event
This event is a part of the devbot project which can be used for automation of your daily development routine.
Example of output
Installation guide
Clone into devbot project
git clone [email protected]:sharovik/themer-wordpress-event.git events/themerwordpress
Install it into your devbot project
- clone this repository into
events/
folder of your devbot project. Please make sure to usethemerwordpress
folder name for this event - add into imports path to this event in
defined-events.go
file
import "github.com/sharovik/devbot/events/themerwordpress"
- add this event into
defined-events.go
file to the defined events map object
DefinedEvents.Events[themerwordpress.EventName] = themerwordpress.Event
Database installation
To install it please run
make build-installation-script && scripts/install/run --event_alias=themer_wordpress_event
PHP installation
You server requires php version of 7.1+ with php-dom module. It is only required if you will use the wordpress template generation event.
For ubuntu
sudo apt install php php-dom
Or for brew
brew install php
Or for centos
yum install php php-xml
How to use
- Prepare a
*.twig
template and compress it in a*.zip
file (here you can find the example of template) - Open PM of the bot, channel where this bot was added or tag bot-user during the attachment send
- In attachment popup please write in comment field
process
word and send the attachment - After bot received your attachment you will see the answer
Please, wait a bit. I have to process this file
Up to 4 seconds will take to process the template
5. After template was processed you will receive in answer new archive where you will find html preview of your template
and WordPress template