Files
Open-Assistant/discord-bot/bot/__main__.py
T
Alex Ott 8970195c39 Add /help and /tutorial commands and update bot activity (#399)
* 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>
2023-01-06 19:42:56 +01:00

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,
)