@@ -0,0 +1,962 @@
+from lib.command import Command%0Afrom lib.utils import escape_telegram_html%0A%0Afrom bs4 import BeautifulSoup%0Aimport requests%0A%0A%0Aclass InsultCommand(Command):%0A    name = 'insult'%0A    aliases = %5B'abuse'%5D%0A    description = 'Gets a random insult from http://www.insultgenerator.org'%0A%0A    def run(self, message, args):%0A        response = None%0A        try:%0A            response = requests.get('http://www.insultgenerator.org')%0A        except requests.exceptions.RequestException as ex:%0A            self.reply(message, 'Error: %7B0%7D'.format(ex.strerror))%0A            self.logger.exception(ex)%0A            return%0A        finally:%0A            if response is not None:%0A                response.close()%0A%0A        html = response.text%0A        parsed_html = BeautifulSoup(html, 'html.parser')%0A        insult_html = parsed_html.body.find('div', %7B'class': 'wrap'%7D)%0A        insult = escape_telegram_html(insult_html.text.strip())%0A        self.reply(message, insult, parse_mode='HTML')%0A

Add insult command