Update bot.py

This commit is contained in:
Tim Wilson
2020-09-11 16:41:42 -06:00
committed by GitHub
parent 851ce75662
commit 7997887ed5

4
bot.py
View File

@@ -1112,7 +1112,7 @@ async def add(message, content = ""):
except:
await message.channel.send('‼️ Error communicating with Transmission ‼️')
return
torStr.append("From file: {}".format(tor.name))
torStr.append("📄 {}".format(tor.name))
for t in content.strip().split(" "):
if len(t) > 5:
@@ -1128,7 +1128,7 @@ async def add(message, content = ""):
except:
await message.channel.send('‼️ Error communicating with Transmission ‼️')
return
torStr.append("From link: {}".format(tor.name))
torStr.append("🧲 {}".format(tor.name))
if len(torStr) > 0:
await message.channel.send('🟢 Added torrent{}:\n{}'.format("s" if len(torStr) > 1 else "", '\n'.join(torStr)))