""" see repo """

# Copyright (C) 2020-2022 by UsergeTeam@Github, < https://github.com/UsergeTeam >.
#
# This file is part of < https://github.com/UsergeTeam/Userge > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/UsergeTeam/Userge/blob/master/LICENSE >
#
# All rights reserved.

from userge import userge, Message, versions

from . import UPSTREAM_REPO


@userge.on_cmd("repo", about={'header': "get repo link and details"})
async def see_repo(message: Message):
    """see repo"""
    output = f"""
**Hey**, __I am using__ ðŸ”¥ **Userge** ðŸ”¥

    __Durable as a Serge__

â€¢ **userge version** : `{await versions.get_full_version()}`
â€¢ **loader version** : `{versions.__loader_version__}`
â€¢ **license** : {versions.__license__}
â€¢ **copyright** : {versions.__copyright__}
â€¢ **repo** : [Userge]({UPSTREAM_REPO})
"""
    await message.edit(output)
