title: Create a discord bot which logs all messages
body: <p>So I've looked into creating a python discord bot, and am wondering how to create a discord bot which logs everything. I want it to log messages, edits, deletes, invites, etc immediately to a text file. I saw .on_message() but I don't know how to actually get the message. Any ideas?(The purpose of this is to create a log for a school club discord server which would allow teachers to join. They cannot join unless they have a method of checking all communication between teachers and students. This bot would be run on the school servers)</p>
  
  <p>Thanks in advance.</p>