Skip to content
Snippets Groups Projects
Commit b0a85c1e authored by dnns01's avatar dnns01
Browse files

Add notification to yuni, whenever Marcus starts blender

parent a6d0b145
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,7 @@ load_dotenv()
TOKEN = os.getenv('DISCORD_TOKEN')
ACTIVITY = os.getenv('DISCORD_ACTIVITY')
intents = discord.Intents.default()
intents.members = True
intents = discord.Intents.all()
bot = commands.Bot(command_prefix='!', help_command=None, activity=discord.Game(ACTIVITY), intents=intents)
bot.add_cog(PollCog(bot))
bot.add_cog(RollCog(bot))
......@@ -30,4 +29,14 @@ async def on_ready():
print("Client started!")
@bot.event
async def on_member_update(before, after):
if before.id == 250613346653569025:
if after.activity and "Blender" in after.activity.name:
if not before.activity or (before.activity and "Blender" not in before.activity.name):
channel = await bot.fetch_channel(811980578621620235)
await channel.send(
"Achtung <@!490167202625093634>!!! Er tut es schon wieder! Marcus hat gerade die Kultsoftware Blender gestartet!")
bot.run(TOKEN)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment