|
|
@ -4,6 +4,7 @@ from redbot.core import Config, checks, commands
|
|
|
|
|
|
|
|
|
|
|
|
from redbot.core.bot import Red
|
|
|
|
from redbot.core.bot import Red
|
|
|
|
from typing import Any
|
|
|
|
from typing import Any
|
|
|
|
|
|
|
|
import asyncio
|
|
|
|
|
|
|
|
|
|
|
|
Cog: Any = getattr(commands, "Cog", object)
|
|
|
|
Cog: Any = getattr(commands, "Cog", object)
|
|
|
|
|
|
|
|
|
|
|
@ -36,6 +37,7 @@ class ForceMention(Cog):
|
|
|
|
if not role_obj.mentionable:
|
|
|
|
if not role_obj.mentionable:
|
|
|
|
await role_obj.edit(mentionable=True)
|
|
|
|
await role_obj.edit(mentionable=True)
|
|
|
|
await ctx.send("{}\n{}".format(role_obj.mention, message))
|
|
|
|
await ctx.send("{}\n{}".format(role_obj.mention, message))
|
|
|
|
|
|
|
|
await asyncio.sleep(5)
|
|
|
|
await role_obj.edit(mentionable=False)
|
|
|
|
await role_obj.edit(mentionable=False)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
await ctx.send("{}\n{}".format(role_obj.mention, message))
|
|
|
|
await ctx.send("{}\n{}".format(role_obj.mention, message))
|
|
|
|