move functions to seperate file
This commit is contained in:
7
chatbot
7
chatbot
@@ -3,17 +3,12 @@
|
||||
import argparse
|
||||
import slixmpp
|
||||
import configparser
|
||||
from functions import *
|
||||
|
||||
CONFIG_PATH = "./config.ini"
|
||||
|
||||
VERSION='0.1.0'
|
||||
|
||||
def processmsg(msg, rcpt):
|
||||
if msg.startswith("!"):
|
||||
return ""
|
||||
elif "youtube.com/watch" in msg:
|
||||
return msg.replace("youtube.com", "iv.datura.network")
|
||||
|
||||
def show_version():
|
||||
print("chatbot " + VERSION)
|
||||
print("License AGPLv3+: GNU AGPL version 3 or later <https://gnu.org/licenses/gpl.html>")
|
||||
|
Reference in New Issue
Block a user