actually don't add bad stuff

This commit is contained in:
Will Tekulve 2016-04-09 18:24:04 -04:00
parent 7c6f7037b0
commit 6a726d1a60

View File

@ -50,8 +50,10 @@ class Downloader:
author=ctx.message.author)
if answer is None:
await self.bot.say('Not adding repo.')
return
elif "i agree" not in answer.content.lower():
await self.bot.say('Not adding repo.')
return
self.repos[repo_name] = {}
self.repos[repo_name]['url'] = repo_url
self.update_repo(repo_name)