1
0
mirror of https://gitlab.com/ddorn/tfjm-discord-bot.git synced 2025-07-08 07:30:20 +02:00

misc cog + joke command

This commit is contained in:
ddorn
2020-04-28 20:25:27 +02:00
parent 3b55bd0399
commit 63deb17723
6 changed files with 47 additions and 22 deletions

View File

@ -60,7 +60,7 @@ class DevCog(Cog, name="Dev tools"):
MAP = {"d": "dev", "ts": "teams", "t": "tirages"}
name = MAP.get(name, name)
if name in ("dev", "teams", "tirages"):
if not "." in name:
name = f"src.cogs.{name}"
try: