Cleaned up chicken examples
All checks were successful
git.cronocide.net/bluebubbles-bot/pipeline/head This commit looks good

This commit is contained in:
Daniel Dayley 2023-04-11 10:02:45 -06:00
parent 5635bc6ae1
commit 357832a5bb
Signed by: Cronocide
GPG Key ID: 2CB7D4B8DEB3198E

View File

@ -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 :