Jabber/XMPP conference bot & framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
brathuhn/main.py

28 lines
488 B

#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys, os
cwd = os.getcwd()
sys.path.append(os.path.join(cwd,"sys"))
sys.path.append(os.path.join(cwd,"modules","active"))
import brathuhn
modules = []
files = os.listdir( os.path.join(cwd,"modules","active") )
for f in files:
if f.endswith(".py"):
mod = f[:-3]
elif f.endswith(".pyc"):
mod = f[:-4]
if not mod in modules:
modules.append(mod)
for mod in modules:
__import__(mod)
brathuhn.connect_and_join()
brathuhn.loop()