discordBot/Modules/raidAutomod/serverRaidAutomod.py
2019-04-08 21:30:51 -05:00

19 lines
454 B
Python

from discord.ext import commands
import discord
import time
class RaidAutomod(commands.Cog):
def __init__(self, client):
self._last_member = None
@commands.Cog.listener()
async def on_member_join(self, member):
lastmemjoin = open("Modules/raidAutomod/lastmemjoin", 'w')
lastmemjoin.write(str(member) + "\n" + str(time.monotonic()))
print("TEST")
def setup(client):
client.add_cog(RaidAutomod(client))