Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $Actions = array (
- new ChangeAttribute($database, $user->VkId),
- new Greetings($database, $user->VkId),
- new DefaultIntent($database, $user->VkId),
- new ProductInquiry($database, $user->VkId),
- new Horoscope($database, $user->VkId),
- new Anecdote($database, $user->VkId)
- );
- foreach ($Actions as $Action)
- {
- if ($Action -> CheckIntent($response -> getResult() -> getMetadata() -> getIntentName()))
- {
- $Action -> CheckParametr($response -> getResult() -> getParameters());
- $Action -> Execute($response -> getResult() -> getFulfillment() -> getSpeech());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement