summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorseth <[email protected]>2023-01-12 18:39:51 -0500
committerseth <[email protected]>2023-01-12 18:39:51 -0500
commit95961b27a88230a22a74ae9de6cdd60d3beda95d (patch)
tree556f4361b4971cd9cb4bdd8f538230ab79ca4a03 /src
parentf9d3078865b0c4fe99fa7cb7ec4b82f2f9c31263 (diff)
feat: use type hints for all internal functions
Diffstat (limited to 'src')
-rw-r--r--src/moyai_bot/lib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/moyai_bot/lib.py b/src/moyai_bot/lib.py
index 9ec4b0e..ffbc251 100644
--- a/src/moyai_bot/lib.py
+++ b/src/moyai_bot/lib.py
@@ -9,7 +9,7 @@ from moyai_bot import copypastas
CHAR_LIMIT: int = 2000
-def get_random_response(moyai):
+def get_random_response(moyai) -> str:
responses = [
"soon",
"maybe",
@@ -27,7 +27,7 @@ def get_random_response(moyai):
return random.choice(responses)
-def split_msg(msg: str):
+def split_msg(msg: str) -> list[str]:
"""
splits a message into multiple parts so that it
can fit into the discord character limit