|
|
@ -2,12 +2,13 @@ import discord |
|
|
|
from ..exceptions import * |
|
|
|
from ..bot import DiscordClient |
|
|
|
from ..player import Player |
|
|
|
import os |
|
|
|
|
|
|
|
class Extension: |
|
|
|
auth_channel = 960796520247091201 |
|
|
|
default_role = 684828780040421388 |
|
|
|
def __init__(self, core: DiscordClient, enabled = True): |
|
|
|
if not enabled: return None |
|
|
|
def __init__(self, core: DiscordClient): |
|
|
|
if not os.getenv("REGISTER_ENABLED", None): return None |
|
|
|
@core.tree.command(name = "register", description = "Привязать дискорд к стиму") |
|
|
|
@discord.app_commands.describe(profile=core.ANY_INPUT) |
|
|
|
async def register( |
|
|
|