client.send_message(Object(message['channel']),'{}, {} asked me to tell you "{}"'.format(message['message_to'],message['message_from'],message['message']))
db_delete_sent_message(message['message_id'])
exceptExceptionase:
log("{}\nFailed to send message: {}".format(format_exception(e),message['message_id'],))
return
@client.event
defon_message(message):
...
...
@@ -282,32 +418,26 @@ Stuff:
return
ifmessage.content.startswith('!lastseen'):
data=None
try:
json_data=open(member_status).read()
data=json.loads(json_data)
exceptValueError:
pass
ifnotdata:
client.send_message(message.channel,'I am a bit confused right now.. maybe I need more data. {}!'.format(message.author.mention()))
client.send_message(message.channel,'{} has been added to your aliases'.format(alias))
else:
client.send_message(message.channel,'Something horrible happened and it is all your fault.')
client.send_message(message.channel,'Something horrible happened and it is all your fault, try logging out / on again or play a game. (or fuck off i dunno i\'m just an error message. Who am I to tell you how to run your life...)')
return
ifmessage.content.startswith('!games'):
data=None
try:
json_data=open(member_status).read()
data=json.loads(json_data)
exceptValueError:
pass
ifnotdata:
client.send_message(message.channel,'I am a bit confused right now.. maybe I need more data. {}!'.format(message.author.mention()))
client.send_message(message.channel,'Below is a list of people who have played {} and the number of times they have launched the game:'.format(byteify(game_name),))