From 5458b23efb8d7ddd9dac007ffa2dae2c8831ff74 Mon Sep 17 00:00:00 2001 From: Julian Marcos Date: Sat, 2 Sep 2023 22:05:19 +0200 Subject: [PATCH] tilde_guess: Remove obsolete notifchan This commit removes the obsolete notifchan and it's associated code from the program. Furthermore, this commit removes the importlib library from the file, as it's not used anywere --- plugins/tilde.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/tilde.py b/plugins/tilde.py index b1f31b1..859e578 100644 --- a/plugins/tilde.py +++ b/plugins/tilde.py @@ -2,11 +2,9 @@ import pinhook.plugin import util.tilde -import importlib import subprocess from random import randint from decimal import Decimal,ROUND_DOWN,ROUND_UP -notifchan = '#ju-botlog' CTR = {} @pinhook.plugin.command('&tildescore', help_text='See how many tildes you have with ju.') @@ -80,8 +78,6 @@ def tilde_guess_plugin(msg): if msg.nick in util.tilde.challenges and (msg.channel == util.tilde.GOOD_CHAN or util.tilde.DEBUG) and not msg.text.startswith('!'): chalres = util.tilde.challenge_response(msg.nick, msg.timestamp, msg.text) resp = pinhook.plugin.message(chalres[0]) - importlib.import_module('os').system('/home/jmjl/bin/juUpdate') - if chalres[1][1] != 0: msg.privmsg(notifchan, f"({chalres[1][0]}) +{chalres[1][1]}") return resp @pinhook.plugin.command('&brainwash', help_text='Alias -- &cleanwash')