packages/ircbot: meme

This commit is contained in:
Tiago Carvalho 2022-09-24 23:45:30 +01:00 committed by Max
parent d54bcec082
commit 24c2712e71

View file

@ -45,7 +45,7 @@ def run_bot(c):
bot.hooks.clear() bot.hooks.clear()
for path in filter(lambda h: h[-3:] == '.py', os.listdir('hooks')): for path in filter(lambda h: h[-3:] == '.py', os.listdir('hooks')):
name = '.'.join(['hooks', path.split('.py')[0]]) name = '.'.join(['hooks', path[:-3]])
if name in sys.modules.keys(): if name in sys.modules.keys():
del sys.modules[name] del sys.modules[name]
try: try: