mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-28 16:20:34 +08:00
8970195c39
* add help command and update bot activity * remove useless lines * fix help message * rename variable * start tutorial command * Update messages.py Co-authored-by: Andreas Köpf <andreas.koepf@xamla.com>
25 lines
496 B
Python
25 lines
496 B
Python
"""Entry point for the bot."""
|
|
import logging
|
|
import os
|
|
|
|
from bot.bot import bot
|
|
from hikari.presences import Activity, ActivityType, Status
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
if __name__ == "__main__":
|
|
if os.name != "nt":
|
|
import uvloop
|
|
|
|
uvloop.install()
|
|
|
|
logger.info("Starting bot")
|
|
bot.run(
|
|
check_for_updates=True,
|
|
activity=Activity(
|
|
name="/help",
|
|
type=ActivityType.PLAYING,
|
|
),
|
|
status=Status.ONLINE,
|
|
)
|