Adjust the directory structure to prepare for merging into Master.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
from jarvis.functional_modules.functional_module import functional_module, CallerContext
|
||||
|
||||
import joke_db
|
||||
|
||||
|
||||
@functional_module(
|
||||
name="tell_joke",
|
||||
description="Tell a joke. DO NOT come up with a joke if you call this function, this module will tell one.",
|
||||
signature={})
|
||||
async def do_nothing(context: CallerContext):
|
||||
the_joke = joke_db.random_joke()
|
||||
await context.reply_text(the_joke)
|
||||
return the_joke
|
||||
Reference in New Issue
Block a user