diff --git a/ubot/modules/reddit.py b/ubot/modules/reddit.py index 5cac823..b32816b 100644 --- a/ubot/modules/reddit.py +++ b/ubot/modules/reddit.py @@ -108,7 +108,7 @@ async def bodyfetcher(event, sub): @ldr.add(pattern="redi") async def redimg(event): - sub = event.pattern_match.group(1) + sub = event.pattern_match.group(1).replace(" ", "_") if sub: await imagefetcher(event, sub) @@ -118,7 +118,7 @@ async def redimg(event): @ldr.add(pattern="redt") async def redtit(event): - sub = event.pattern_match.group(1) + sub = event.pattern_match.group(1).replace(" ", "_") if sub: await titlefetcher(event, sub) @@ -128,7 +128,7 @@ async def redtit(event): @ldr.add(pattern="redb") async def redbod(event): - sub = event.pattern_match.group(1) + sub = event.pattern_match.group(1).replace(" ", "_") if sub: await bodyfetcher(event, sub)