check if github webhook push is of Kurisu:master
@@ -321,7 +321,8 @@ class Events:
async def on_message(self, message):
if message.channel.is_private:
return
- if message.author.name == "GitHub" and message.author.discriminator == "0000" and message.channel.name == "helpers":
+ if message.author.name == "GitHub" and message.author.discriminator == "0000":
+ if message.embeds[0]['title'].startswith('[Kurisu:master]'):
await self.bot.send_message(self.bot.helpers_channel, "Automatically pulling changes!")
call(['git', 'pull'])
await self.bot.close()
