diff options
| author | Samuel Johnson <[email protected]> | 2026-01-09 13:44:17 -0500 |
|---|---|---|
| committer | Samuel Johnson <[email protected]> | 2026-01-09 13:44:17 -0500 |
| commit | 513acd702142808a1b3257f1cabbc775f4dfaaf7 (patch) | |
| tree | 020807761cc133f11ee7acb210459c777057d0cf | |
| parent | d5765d9fce6f142ef94e9653f6cc8b44092bbd1f (diff) | |
Allow use of whfb lexicanum
| -rw-r--r-- | src/main.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.py b/src/main.py index a43577a..d3950fc 100644 --- a/src/main.py +++ b/src/main.py @@ -21,6 +21,13 @@ async def ping(ctx): @bot.command(name="Explain", aliases=["explain", "What's", "what's"]) async def explain(ctx, *args): + if args[0].lower == "whfb": + args.pop(0) + config["site"] = "https://whfb.lexicanum.com" + if args[0].lower == "aos": + args.pop(0) + config["site"] = "https://ageofsigmar.lexicanum.com" + query = " ".join([x.replace('"', "") for x in args]) try: |
