Skip to content

Commit

Permalink
1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ihaveamac committed Jul 10, 2017
1 parent 1abd6c2 commit c8d1245
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
import json
import random
import os
from urllib.request import urlopen

version = '1.1dev'
version = '1.1'

print('Starting discord-mod-mail {}!'.format(version))

Expand Down Expand Up @@ -118,12 +119,6 @@ async def on_message(message):
else:
to_send = '{}: '.format(message.author.mention)
to_send += command_contents
# this will not work properly since the source message is deleted, invalidating attachments
# if message.attachments:
# attachment_urls = []
# for attachment in message.attachments:
# attachment_urls.append('[{}]({})'.format(attachment['filename'], attachment['url']))
# attachment_msg = '\n\n\N{BULLET} ' + '\n\N{BULLET} s '.join(attachment_urls)
try:
await client.send_message(member, to_send)
header_message = '{0.author.mention} replying to {1.id} {1.mention}'.format(message, member)
Expand Down

0 comments on commit c8d1245

Please sign in to comment.