@@ -2,9 +2,7 @@ import pkgutil
from rollbot import get_command_config, CommandConfiguration
-for loader, module_name, is_pkg in pkgutil.walk_packages(__path__):
- _module = loader.find_module(module_name).load_module(module_name)
- globals()[module_name] = _module
+import commands.curse, commands.hangguy, commands.omen, commands.plex, commands.poll, commands.querying, commands.roll, commands.rollcoin, commands.session, commands.seychelles, commands.simple, commands.tarot, commands.teamspeak, commands.yell
__all__ = ["config"]
config = get_command_config().extend(
@@ -41,6 +39,7 @@ config = get_command_config().extend(
"choose": "choice",
"omens": "omen",
"pollhearts": "poll",
+ "bubble": "bubblewrap",
},
)
@@ -1,4 +1,5 @@
import random
+import re
from datetime import datetime, timedelta
from rollbot import as_command, Message, RollbotFailure, Command, Attachment
@@ -194,3 +195,22 @@ def unfeed():
global last_feed
last_feed = None
return random.choice(("What's your problem?", "Bro why", "Come on!!!!"))
+
+@as_command
+def bubblewrap(args: Args):
+ try:
+ c, r = re.match(r"(\d+)(?:[x,; ]+(\d+))?", args).groups()
+ print(c, r)
+ c = int(c)
+ r = int(r) if r else c
+ except:
+ c = r = 4
+ if c > 10 or r > 10:
+ return "fuck off"
+ return "\n".join(["||pop|| " * c] * r)