Artem is an easy core for creating chatbots in vk.com based on the flexible mechanism of user scenarios for replies.
To install artem through pip, execute follow command:
pip install artem
Also you can download the package from Python Package Index or Github Releases, unzip archive and use this command for install:
python setup.py install
The simplest example of launching:
import artem
art = artem.Artem(GROUP_ID, GROUP_ACCESS_KEY)
art.on('MESSAGE', handler='Hello World from Artem!')
art.alive()
After running this script, the bot-chat will answer any incoming message with the words "Hello World from Artem!". For more, see below.
The simplified scheme of the Artem core functioning:
Artem has three groups of handled scenarios:
- Scenarios of incoming events:
- JOIN
- MESSAGE
- Scenarios of time events:
- TIME
- IDLE
- SILENCE
- Scenarios for postprocessing events:
- POSTPROC
- Startup scenario:
- START
Full event Handling Schema: