mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2024-12-22 20:35:36 +00:00
Fix reply command targets (#70)
This commit is contained in:
parent
69b74069af
commit
492d43c608
|
@ -195,7 +195,7 @@ class Meme(Cog):
|
||||||
if target is None and ctx.message.reference is None:
|
if target is None and ctx.message.reference is None:
|
||||||
await ctx.reply("https://tenor.com/view/bonk-gif-26414884")
|
await ctx.reply("https://tenor.com/view/bonk-gif-26414884")
|
||||||
else:
|
else:
|
||||||
if target is None:
|
if ctx.message.reference is not None:
|
||||||
target = (
|
target = (
|
||||||
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
||||||
).author
|
).author
|
||||||
|
|
|
@ -45,7 +45,9 @@ class Mod(Cog):
|
||||||
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if target is None:
|
if ctx.message.reference is not None:
|
||||||
|
if target is not None:
|
||||||
|
reason = str(target) + reason
|
||||||
target = (
|
target = (
|
||||||
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
||||||
).author
|
).author
|
||||||
|
@ -139,7 +141,9 @@ class Mod(Cog):
|
||||||
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if target is None:
|
if ctx.message.reference is not None:
|
||||||
|
if target is not None:
|
||||||
|
reason = str(target) + reason
|
||||||
target = (
|
target = (
|
||||||
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
||||||
).author
|
).author
|
||||||
|
@ -209,7 +213,9 @@ class Mod(Cog):
|
||||||
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if target is None:
|
if ctx.message.reference is not None:
|
||||||
|
if target is not None:
|
||||||
|
reason = str(target) + reason
|
||||||
target = (
|
target = (
|
||||||
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
||||||
).author
|
).author
|
||||||
|
@ -281,7 +287,9 @@ class Mod(Cog):
|
||||||
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if target is None:
|
if ctx.message.reference is not None:
|
||||||
|
if target is not None:
|
||||||
|
reason = str(target) + reason
|
||||||
target = (
|
target = (
|
||||||
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
||||||
).author
|
).author
|
||||||
|
@ -539,7 +547,7 @@ class Mod(Cog):
|
||||||
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if target is None:
|
if ctx.message.reference is not None:
|
||||||
target = (
|
target = (
|
||||||
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
||||||
).author
|
).author
|
||||||
|
@ -578,7 +586,7 @@ class Mod(Cog):
|
||||||
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if target is None:
|
if ctx.message.reference is not None:
|
||||||
target = (
|
target = (
|
||||||
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
||||||
).author
|
).author
|
||||||
|
@ -624,7 +632,9 @@ class Mod(Cog):
|
||||||
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if target is None:
|
if ctx.message.reference is not None:
|
||||||
|
if target is not None:
|
||||||
|
reason = str(target) + reason
|
||||||
target = (
|
target = (
|
||||||
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
||||||
).author
|
).author
|
||||||
|
@ -778,7 +788,7 @@ class Mod(Cog):
|
||||||
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if target is None:
|
if ctx.message.reference is not None:
|
||||||
target = (
|
target = (
|
||||||
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
||||||
).author
|
).author
|
||||||
|
|
|
@ -31,7 +31,9 @@ class ModTimed(Cog):
|
||||||
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if target is None:
|
if ctx.message.reference is not None:
|
||||||
|
if target is not None:
|
||||||
|
duration = str(target) + duration
|
||||||
target = (
|
target = (
|
||||||
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
||||||
).author
|
).author
|
||||||
|
@ -107,7 +109,9 @@ class ModTimed(Cog):
|
||||||
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
f"I'm sorry {ctx.author.mention}, I'm afraid I can't do that."
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if target is None:
|
if ctx.message.reference is not None:
|
||||||
|
if target is not None:
|
||||||
|
duration = str(target) + duration
|
||||||
target = (
|
target = (
|
||||||
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
await ctx.channel.fetch_message(ctx.message.reference.message_id)
|
||||||
).author
|
).author
|
||||||
|
|
Loading…
Reference in a new issue