2020-04-30 17:26:33 +02:00
|
|
|
import asyncio
|
|
|
|
from typing import Sequence
|
|
|
|
|
2020-04-30 11:44:17 +02:00
|
|
|
import psutil
|
2020-04-30 17:26:33 +02:00
|
|
|
from discord import Message, Member, User, Reaction
|
2020-04-29 18:43:07 +02:00
|
|
|
from discord.ext.commands import Context, Bot
|
2020-04-30 17:26:33 +02:00
|
|
|
from discord.utils import get
|
|
|
|
|
|
|
|
from src.constants import Emoji
|
2020-04-29 18:43:07 +02:00
|
|
|
|
|
|
|
|
2020-04-29 16:27:40 +02:00
|
|
|
def has_role(member, role: str):
|
|
|
|
"""Return whether the member has a role with this name."""
|
|
|
|
|
|
|
|
return any(r.name == role for r in member.roles)
|
2020-04-29 18:43:07 +02:00
|
|
|
|
|
|
|
|
2020-04-30 17:26:33 +02:00
|
|
|
def start_time(self):
|
2020-04-30 11:44:17 +02:00
|
|
|
return psutil.Process().create_time()
|
|
|
|
|
|
|
|
|
2020-04-30 17:26:33 +02:00
|
|
|
def setup(bot: Bot):
|
|
|
|
pass
|