LastSeen cleanup

flask-develop
bobloy 6 years ago
parent 50a61398e6
commit 2b67a689e1

@ -10,7 +10,7 @@
"description": "Keep track of when users were last seen online",
"hidden": true,
"install_msg": "Thank you for installing LastSeen. Get started with `[p]help LastSeen`",
"requirements": [],
"requirements": ["python-dateutil"],
"short": "Last seen tracker",
"tags": [
"bobloy",

@ -71,19 +71,11 @@ class LastSeen:
# embed = discord.Embed(
# description="{} was last seen at this date and time".format(member.display_name),
# timestamp=self.get_date_time(last_seen))
# timestamp=last_seen)
embed = discord.Embed(timestamp=last_seen)
await ctx.send(embed=embed)
# async def on_socket_raw_receive(self, data):
# try:
# if type(data) == str:
# raw = json.loads(data)
# print(data)
# except:
# print(data)
async def on_member_update(self, before: discord.Member, after: discord.Member):
if before.status != self.offline_status and after.status == self.offline_status:
if not await self.config.guild(before.guild).enabled():

Loading…
Cancel
Save