Update help and comment section
This commit is contained in:
parent
acd4bf1342
commit
476c0ba177
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# XMPP bot that mirrors chat between two MUC rooms
|
# XMPP bot that mirrors chat from MUC room to mail
|
||||||
import argparse
|
import argparse
|
||||||
import slixmpp
|
import slixmpp
|
||||||
import configparser
|
import configparser
|
||||||
@ -10,7 +10,7 @@ CONFIG_PATH = "./config.ini"
|
|||||||
VERSION='0.1.0'
|
VERSION='0.1.0'
|
||||||
|
|
||||||
def show_version():
|
def show_version():
|
||||||
print("XMPPmirror " + VERSION)
|
print("XMPPemail " + VERSION)
|
||||||
print("License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>")
|
print("License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>")
|
||||||
print("This is free software: you are free to change and redistribute it.")
|
print("This is free software: you are free to change and redistribute it.")
|
||||||
print("There is NO WARRANTY, to the extent permitted by law.")
|
print("There is NO WARRANTY, to the extent permitted by law.")
|
||||||
@ -44,7 +44,7 @@ class MUCBot(slixmpp.ClientXMPP):
|
|||||||
server.sendmail(self.send_mail , self.rec_mail, f"From: {self.send_mail}\r\nTo: {self.rec_mail}\r\n\r\n"+msg['body'])
|
server.sendmail(self.send_mail , self.rec_mail, f"From: {self.send_mail}\r\nTo: {self.rec_mail}\r\n\r\n"+msg['body'])
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
argparser = argparse.ArgumentParser(description="XMPP bot that mirrors chat between two MUC rooms")
|
argparser = argparse.ArgumentParser(description="XMPP bot that mirrors chat from MUC room to mail")
|
||||||
argparser.add_argument("--version", dest="version", help="print version information and exit", action="store_true")
|
argparser.add_argument("--version", dest="version", help="print version information and exit", action="store_true")
|
||||||
args=argparser.parse_args()
|
args=argparser.parse_args()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user