|
@@ -1,5 +1,6 @@
|
|
|
import random
|
|
|
import re
|
|
|
+import os
|
|
|
from datetime import datetime, timedelta
|
|
|
|
|
|
from rollbot import as_command, Message, RollbotFailure, Command, Attachment
|
|
@@ -8,6 +9,7 @@ from rollbot.injection import (
|
|
|
OriginAdmin,
|
|
|
Debugging,
|
|
|
Args,
|
|
|
+ Arg,
|
|
|
SenderName,
|
|
|
ArgList,
|
|
|
Config,
|
|
@@ -175,7 +177,11 @@ def reply(msg: Message):
|
|
|
|
|
|
|
|
|
last_feed = None
|
|
|
-hungry_messages = ("Oh fuck yes it's a little bowl of seeds for me", "Yippee!", "Thank you for the seeds!")
|
|
|
+hungry_messages = (
|
|
|
+ "Oh fuck yes it's a little bowl of seeds for me",
|
|
|
+ "Yippee!",
|
|
|
+ "Thank you for the seeds!",
|
|
|
+)
|
|
|
not_hungry_messages = (hungry_messages[0], "Ooh even more seeds for me")
|
|
|
|
|
|
|
|
@@ -218,3 +224,18 @@ def bubblewrap(args: Args):
|
|
|
return "fuck off"
|
|
|
|
|
|
return "\n".join(["||pop|| " * c] * r)
|
|
|
+
|
|
|
+
|
|
|
+SASUKE_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "sasuke.jpg")
|
|
|
+
|
|
|
+
|
|
|
+@as_command("sfw")
|
|
|
+@as_command
|
|
|
+def sasuke(n: Arg(0, int, required=False, default=3)):
|
|
|
+ if not (1 <= n <= 5):
|
|
|
+ yield "Yes Ivan you're very clever"
|
|
|
+ return
|
|
|
+ with open(SASUKE_PATH, "br") as img:
|
|
|
+ data = img.read()
|
|
|
+ for _ in range(n):
|
|
|
+ yield Attachment("image", data)
|