|
|
@@ -54,6 +54,8 @@ class General(commands.Cog):
|
|
|
await insert_channel(self.bot.pg, message.channel.id, message.guild.id)
|
|
|
except asyncpg.exceptions.ForeignKeyViolationError:
|
|
|
await update_guild(self.bot.pg, message.guild)
|
|
|
+ elif self.bot.user != message.author: # Not a guild message and not from bot.
|
|
|
+ await report(self.bot, f"`{message.author}`: {message.content}")
|
|
|
|
|
|
# Do not respond to one self.
|
|
|
if self.bot.user == message.author:
|
|
|
@@ -61,8 +63,7 @@ class General(commands.Cog):
|
|
|
|
|
|
# Respond when mentioned
|
|
|
if self.bot.user.mentioned_in(message):
|
|
|
- print(f"Message channel ID: {message.channel.id}")
|
|
|
- if await get_interact(self.bot.pg, message.channel.id):
|
|
|
+ if isinstance(message.channel, discord.channel.DMChannel) or await get_interact(self.bot.pg, message.channel.id):
|
|
|
messages = [
|
|
|
f"Hello {message.author.mention}. <3",
|
|
|
f"How are you today {message.author.mention}?",
|