mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
commit
6a87e2c5b4
2
setup.py
2
setup.py
@ -41,7 +41,7 @@ if not os.path.exists(stockdir) or not os.path.isdir(stockdir):
|
|||||||
os.system("sudo mkdir " + stockdir)
|
os.system("sudo mkdir " + stockdir)
|
||||||
for pathname in os.listdir(modules_dir):
|
for pathname in os.listdir(modules_dir):
|
||||||
path = os.path.join(modules_dir, pathname)
|
path = os.path.join(modules_dir, pathname)
|
||||||
if (os.path.isfile(path) and path.endswith('.py') and not path.startswith('_')):
|
if (os.path.isfile(path) and pathname.endswith('.py') and not pathname.startswith('_')):
|
||||||
os.system("sudo mv " + path + " " + stockdir)
|
os.system("sudo mv " + path + " " + stockdir)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -15,6 +15,7 @@ def configure(config):
|
|||||||
|
|
||||||
|
|
||||||
def setup(bot):
|
def setup(bot):
|
||||||
|
# TODO add custom pretrigger events
|
||||||
bot_logging(bot, 'Sopel_BotEvents', "Starting Module Events Logging")
|
bot_logging(bot, 'Sopel_BotEvents', "Starting Module Events Logging")
|
||||||
|
|
||||||
threading.Thread(target=setup_thread, args=(bot,)).start()
|
threading.Thread(target=setup_thread, args=(bot,)).start()
|
||||||
|
|||||||
@ -91,5 +91,5 @@ def stock_modules_begone(bot):
|
|||||||
os.system("sudo mkdir " + stockdir)
|
os.system("sudo mkdir " + stockdir)
|
||||||
for pathname in os.listdir(modules_dir):
|
for pathname in os.listdir(modules_dir):
|
||||||
path = os.path.join(modules_dir, pathname)
|
path = os.path.join(modules_dir, pathname)
|
||||||
if (os.path.isfile(path) and path.endswith('.py') and not path.startswith('_')):
|
if (os.path.isfile(path) and pathname.endswith('.py') and not pathname.startswith('_')):
|
||||||
os.system("sudo mv " + path + " " + stockdir)
|
os.system("sudo mv " + path + " " + stockdir)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user