Compare commits
No commits in common. "5458b23efb8d7ddd9dac007ffa2dae2c8831ff74" and "4f631e96fe9e9571f74a26b9afb1d617091f2d98" have entirely different histories.
5458b23efb
...
4f631e96fe
|
@ -2,9 +2,11 @@
|
|||
|
||||
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.')
|
||||
|
@ -78,6 +80,8 @@ 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')
|
||||
|
|
|
@ -15,12 +15,12 @@ verbs = [
|
|||
|
||||
class IgnoredUsers:
|
||||
def __init__(self):
|
||||
if 'date/nowater.txt' not in listdir():
|
||||
open('date/nowater.txt', 'w').close()
|
||||
if 'nowater.txt' not in listdir():
|
||||
open('nowater.txt', 'w').close()
|
||||
|
||||
@property
|
||||
def users(self):
|
||||
with open('date/nowater.txt', 'r') as w:
|
||||
with open('nowater.txt', 'r') as w:
|
||||
u = [i.strip() for i in w.readlines() if i.strip()]
|
||||
return u
|
||||
|
||||
|
|
Loading…
Reference in New Issue