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
master
Julian Marcos 2023-09-02 22:05:19 +02:00
parent 6d2a05d52c
commit 5458b23efb
No known key found for this signature in database
GPG Key ID: 33A8988F3B9067A0
1 changed files with 0 additions and 4 deletions

View File

@ -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')