hebdobot/hebdobot.py

25 lines
513 B
Python
Raw Normal View History

2024-01-11 08:17:25 +01:00
import click
from ircbot import IrcBot
import settings
import logger
@click.command()
@click.option("--version", is_flag=True, help="Display bot version and exit.")
def main(version):
if version:
click.echo(f"Hebdobot {settings.VERSION}")
exit(0)
logger.info(
"--==============================INIT===="
"======================================--"
)
logger.info(f"Hebdobot {settings.VERSION}")
IrcBot(settings).start()
if __name__ == "__main__":
main()