コード例 #1
0
ファイル: __main__.py プロジェクト: yahiko963/KampangUsergay
# pylint: disable=missing-module-docstring
#
# Copyright (C) 2020 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/uaudith/Userge/blob/master/LICENSE >
#
# All rights reserved.

import os

from userge import userge


async def _worker() -> None:
    chat_id = int(os.environ.get("CHAT_ID") or 0)
    type_ = 'unofficial' if os.path.exists(
        "../userge/plugins/unofficial") else 'main'
    await userge.send_message(chat_id, f'`{type_} build completed !`')


if __name__ == "__main__":
    userge.begin(_worker())
    print('KampangUsergay test has been finished!')
コード例 #2
0
ファイル: __main__.py プロジェクト: Pruthvi80/userge
# pylint: disable=missing-module-docstring
#
# Copyright (C) 2020-2021 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

if __name__ == "__main__":
    userge.begin()