diff --git a/Shitpost.py b/Shitpost.py index c22215f..85da477 100644 --- a/Shitpost.py +++ b/Shitpost.py @@ -805,3 +805,25 @@ class Shitpost(commands.Cog): topic = " ".join(args) message = self.get_review_string(topic) await ctx.channel.send(message) + + def get_zaagmans(self): + zaagman_url = "http://iszaagmansallangsgeweest.nl/" + zreq = requests.get(zaagman_url) + if zreq: + return "zaagmans heeft de week doormidden gezaagd" in zreq.text.lower() + else: + return None + + @commands.command(pass_context=True) + async def zaagmans(self, ctx): + """Is zaagmans al langsgeweest? Is de week al doormidden. Wie weet.""" + gezaagd = self.get_zaagmans() + message = ctx.author.mention + ", " + if gezaagd: + message += "zaagmans is langsgeweest. De week is doormidden! 🪚🪚🪚" + else: + if gezaagd is None: + message += "de waarheid over zaagmans is niet te doorgronden." + else: + message += "het is nog niet zo ver. De week is nog heel." + await ctx.channel.send(message) \ No newline at end of file