aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joseph <[email protected]>2018-02-12 12:14:16 +0000
committerGravatar Gareth Coles <[email protected]>2018-02-12 12:14:16 +0000
commit74f7ead201e9afeda6a7f2d36e5c07e96e6e094b (patch)
tree461a0e09d3add201eeb3796f7218ab489ea48333
parentonly deploy on master (#5) (diff)
Update logging.py (#6)
* Update logging.py * PEP8 * Complete #1pv7v
-rw-r--r--bot/cogs/logging.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/bot/cogs/logging.py b/bot/cogs/logging.py
index 56107ee27..e8912c38f 100644
--- a/bot/cogs/logging.py
+++ b/bot/cogs/logging.py
@@ -1,5 +1,4 @@
# coding=utf-8
-from discord import Message
from discord.ext.commands import AutoShardedBot
from bot.constants import DEVLOG_CHANNEL
@@ -15,19 +14,8 @@ class Logging:
async def on_ready(self):
print("Connected!")
-
await self.bot.get_channel(DEVLOG_CHANNEL).send("Connected!")
- async def on_message(self, message: Message):
- if not message.guild: # It's a DM
- print(f"DM: @{message.author.name}#{message.author.discriminator} -> {message.clean_content}")
- else:
- print(
- f"{message.guild.name} | #{message.channel.name} | "
- f"@{message.author.name}#{message.author.discriminator} -> "
- f"{message.clean_content}"
- )
-
def setup(bot):
bot.add_cog(Logging(bot))