mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
Alias cog now respects ignores
This commit is contained in:
parent
efcde3f200
commit
65c7cdb8ee
@ -2,7 +2,7 @@ from discord.ext import commands
|
|||||||
from .utils.chat_formatting import *
|
from .utils.chat_formatting import *
|
||||||
from .utils.dataIO import fileIO
|
from .utils.dataIO import fileIO
|
||||||
from .utils import checks
|
from .utils import checks
|
||||||
from __main__ import send_cmd_help
|
from __main__ import user_allowed, send_cmd_help
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
@ -98,6 +98,9 @@ class Alias:
|
|||||||
await self.bot.say(message)
|
await self.bot.say(message)
|
||||||
|
|
||||||
async def check_aliases(self, message):
|
async def check_aliases(self, message):
|
||||||
|
if not user_allowed(message):
|
||||||
|
return
|
||||||
|
|
||||||
if message.author.id == self.bot.user.id or \
|
if message.author.id == self.bot.user.id or \
|
||||||
len(message.content) < 2 or message.channel.is_private:
|
len(message.content) < 2 or message.channel.is_private:
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user