Compare commits
2 Commits
4f631e96fe
...
5458b23efb
Author | SHA1 | Date |
---|---|---|
Julian Marcos | 5458b23efb | |
Julian Marcos | 6d2a05d52c |
|
@ -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')
|
||||
|
|
|
@ -15,12 +15,12 @@ verbs = [
|
|||
|
||||
class IgnoredUsers:
|
||||
def __init__(self):
|
||||
if 'nowater.txt' not in listdir():
|
||||
open('nowater.txt', 'w').close()
|
||||
if 'date/nowater.txt' not in listdir():
|
||||
open('date/nowater.txt', 'w').close()
|
||||
|
||||
@property
|
||||
def users(self):
|
||||
with open('nowater.txt', 'r') as w:
|
||||
with open('date/nowater.txt', 'r') as w:
|
||||
u = [i.strip() for i in w.readlines() if i.strip()]
|
||||
return u
|
||||
|
||||
|
|
Loading…
Reference in New Issue