mirror of
https://github.com/RGBCube/VReplBot
synced 2025-05-14 05:24:58 +00:00
29 lines
498 B
Python
29 lines
498 B
Python
from __future__ import annotations
|
|
|
|
import json
|
|
from os import environ as env
|
|
from pathlib import Path
|
|
|
|
import uvloop
|
|
|
|
from . import ReplBot
|
|
|
|
|
|
def main() -> None:
|
|
uvloop.install()
|
|
|
|
config = json.loads(
|
|
(
|
|
Path(__file__).parent / "config.json"
|
|
).read_text()
|
|
)
|
|
|
|
env[f"JISHAKU_HIDE"] = "True"
|
|
env[f"JISHAKU_NO_UNDERSCORE"] = "True"
|
|
|
|
bot = ReplBot(
|
|
token = config["BOT_TOKEN"],
|
|
webhook_url = config["WEBHOOK_URL"]
|
|
)
|
|
|
|
bot.run()
|