Skip to content

Instantly share code, notes, and snippets.

@BlackVikingPro
Created June 23, 2017 20:59
Show Gist options
  • Save BlackVikingPro/977ed8b23d4af29efac422a947075024 to your computer and use it in GitHub Desktop.
Save BlackVikingPro/977ed8b23d4af29efac422a947075024 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
""" !- discord.logger.py - Discord Channel Message Logger ~ By: Willy Fox - @BlackVikingPro -! """
import discord
import asyncio
client = discord.Client()
@client.event
async def on_ready():
print('Logged in as')
print(client.user.name)
print(client.user.id)
print('------')
@client.event
async def on_message(message):
print(str(message.author) + ": " + message.content)
with open("discord.messages.log", "a") as myfile:
myfile.write(str(message.author) + ": " + message.content + "\n")
pass
pass
client.run('client id')
@SamArroyos22
Copy link

Works Thanks, Only Problem is that Help Menues dont load correctly it says an error lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment