mirror of
https://github.com/Nick80835/microbot
synced 2025-08-22 01:58:17 +00:00
convert spaces to underscores for reddit arguments
This commit is contained in:
parent
eab8331e9c
commit
b2fee49f01
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user