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 anyweremaster
parent
6d2a05d52c
commit
5458b23efb
|
@ -2,11 +2,9 @@
|
||||||
|
|
||||||
import pinhook.plugin
|
import pinhook.plugin
|
||||||
import util.tilde
|
import util.tilde
|
||||||
import importlib
|
|
||||||
import subprocess
|
import subprocess
|
||||||
from random import randint
|
from random import randint
|
||||||
from decimal import Decimal,ROUND_DOWN,ROUND_UP
|
from decimal import Decimal,ROUND_DOWN,ROUND_UP
|
||||||
notifchan = '#ju-botlog'
|
|
||||||
CTR = {}
|
CTR = {}
|
||||||
|
|
||||||
@pinhook.plugin.command('&tildescore', help_text='See how many tildes you have with ju.')
|
@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('!'):
|
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)
|
chalres = util.tilde.challenge_response(msg.nick, msg.timestamp, msg.text)
|
||||||
resp = pinhook.plugin.message(chalres[0])
|
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
|
return resp
|
||||||
|
|
||||||
@pinhook.plugin.command('&brainwash', help_text='Alias -- &cleanwash')
|
@pinhook.plugin.command('&brainwash', help_text='Alias -- &cleanwash')
|
||||||
|
|
Loading…
Reference in New Issue