Cleaned up chicken examples
All checks were successful
git.cronocide.net/bluebubbles-bot/pipeline/head This commit looks good
All checks were successful
git.cronocide.net/bluebubbles-bot/pipeline/head This commit looks good
This commit is contained in:
parent
5635bc6ae1
commit
357832a5bb
@ -2,13 +2,11 @@ from __future__ import annotations
|
||||
from typing import List
|
||||
import persona
|
||||
from persona import PersonaBaseSkill
|
||||
from dataclasses import dataclass
|
||||
import datetime
|
||||
import random
|
||||
import re
|
||||
|
||||
class PersonaSkill(PersonaBaseSkill) :
|
||||
"""A simple test skill that responds to the message 'Hello' with 'Hello!'"""
|
||||
"""A simple test skill that responds to the joke 'Why did ____ cross the road?''"""
|
||||
def match_intent(self,message: Message) -> Bool :
|
||||
matches = re.search('^Why did the .* cross the road\?', message.text)
|
||||
if matches :
|
||||
|
Loading…
Reference in New Issue
Block a user