Created
June 23, 2017 20:59
-
-
Save BlackVikingPro/977ed8b23d4af29efac422a947075024 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works Thanks, Only Problem is that Help Menues dont load correctly it says an error lol