mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
[V3 Travis] Update travis to not skip pipfile lock... (#1678)
* Update travis to not sip pipfile lock update pipfile dependencies additional black formatting pass to conform to black 18.5b * . * pin async timeout until further discussion of 3.5 support * .
This commit is contained in:
@@ -79,12 +79,10 @@ class RedBase(BotBase, RpcMethodMixin):
|
||||
return global_prefix
|
||||
server_prefix = await bot.db.guild(message.guild).prefix()
|
||||
if cli_flags.mentionable:
|
||||
return when_mentioned_or(*server_prefix)(
|
||||
bot, message
|
||||
) if server_prefix else when_mentioned_or(
|
||||
*global_prefix
|
||||
)(
|
||||
bot, message
|
||||
return (
|
||||
when_mentioned_or(*server_prefix)(bot, message)
|
||||
if server_prefix
|
||||
else when_mentioned_or(*global_prefix)(bot, message)
|
||||
)
|
||||
else:
|
||||
return server_prefix if server_prefix else global_prefix
|
||||
@@ -159,9 +157,8 @@ class RedBase(BotBase, RpcMethodMixin):
|
||||
bool
|
||||
:code:`True` if an embed is requested
|
||||
"""
|
||||
if (
|
||||
isinstance(channel, discord.abc.PrivateChannel)
|
||||
or (command and command == self.get_command("help"))
|
||||
if isinstance(channel, discord.abc.PrivateChannel) or (
|
||||
command and command == self.get_command("help")
|
||||
):
|
||||
user_setting = await self.db.user(user).embeds()
|
||||
if user_setting is not None:
|
||||
|
||||
Reference in New Issue
Block a user