hebdobot/hebdobot.py

25 lines
513 B
Python

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