async def logAction(member, action): r = DictionaryReader() if member.server: await client.send_message( client.get_channel(r.actionLogChannel()), '[' + time.strftime("%Y-%m-%d %H:%M:%S") + '] {0.server.name} - {0.name} ({0.id}) {1}'.format(member, action)) else: await client.send_message( client.get_channel(r.actionLogChannel()), 'No Server - {0.name} ({0.id}) {1}'.format(member, action))
async def logAction(user, guild, action): r = DictionaryReader() channel = client.get_channel(int(r.actionLogChannel())) if guild and channel: await channel.send('[' + time.strftime("%Y-%m-%d %H:%M:%S") + '] {1.name} - {0.name} {0.mention} ({0.id}) {2}'. format(user, guild, action))