Skip to content

Instantly share code, notes, and snippets.

View jankoenig's full-sized avatar
📝
Probably writing Docs

Jan König jankoenig

📝
Probably writing Docs
View GitHub Profile
@rmtuckerphx
rmtuckerphx / GlobalComponents.ts
Last active February 15, 2022 17:41
Jovo v4 RepeatIntent
import { Component, BaseComponent, Global, Handle } from '@jovotech/framework';
@Global()
@Component()
export class GlobalComponent extends BaseComponent {
@Handle({ intents: ['RepeatIntent'], prioritizedOverUnhandled: true })
RepeatPreviousMessage() {
if (this.$history.prev?.output) {
return this.$send(this.$history.prev.output);