blob: 0a235ef11e1330469e6cd7e1275cf88e109f84d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/usr/bin/env python3
# Copyright (C) 2019 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
from bot import Bot
from logger import get_logger
log = get_logger("main")
if __name__ == "__main__":
try:
bot = Bot()
bot.run()
except KeyboardInterrupt:
log.info("Stopped by keyboard interrupt.")
|