mirror of
https://github.com/RussellChamp/tilde-projects.git
synced 2026-10-28 00:22:34 +00:00
Some changes and new stuff
This commit is contained in:
1 parent
33ea98b002
commit
0b5a4fcfb8
19 files changed
+900
-9
No files matched your search
@@ -1,20 +1,20 @@
|
||||
krowbar&^%224&^%1434372702
|
||||
krowbar&^%225&^%1438182841
|
||||
karlen&^%271&^%1426779321
|
||||
endorphant&^%584&^%1434930668
|
||||
endorphant&^%630&^%1438131263
|
||||
jumblesale&^%24&^%1426171214
|
||||
marcus&^%540&^%1434989294
|
||||
papa&^%102&^%1434788735
|
||||
marcus&^%616&^%1440424356
|
||||
papa&^%179&^%1438878499
|
||||
epicmorphism&^%5&^%1421937744
|
||||
audy&^%76&^%1431897326
|
||||
kc&^%18&^%1422326056
|
||||
vilmibm&^%9&^%1423247508
|
||||
cmr&^%452&^%1434995429
|
||||
cmr&^%864&^%1440424361
|
||||
imt&^%519&^%1424087616
|
||||
cndorphant&^%788&^%1424094192
|
||||
rain&^%17&^%1422310975
|
||||
sl2c&^%91&^%1424847521
|
||||
selfsame&^%1&^%1422230012
|
||||
bear&^%207&^%1434744601
|
||||
bear&^%208&^%1438015446
|
||||
coaxial&^%8&^%1422325983
|
||||
joe&^%8&^%1422325983
|
||||
hardmath123&^%4&^%1422325983
|
||||
@@ -23,4 +23,8 @@ cel&^%11&^%1430162676
|
||||
quote_bots&^%3&^%1424737471
|
||||
bave&^%1&^%1427591141
|
||||
scellef&^%13&^%1428707074
|
||||
cndorphbot&^%6&^%1433564301
|
||||
cndorphbot&^%8&^%1438044694
|
||||
reppard&^%11&^%1437512059
|
||||
jesse&^%6&^%1437569027
|
||||
khoi&^%3&^%1438044039
|
||||
sanqui&^%4&^%1438184911
|
||||
@@ -90,3 +90,21 @@
|
||||
1434162536&^%vilmibm&^%when was the last time you saw a whale or butterfly | donations for tilde.town: https://www.patreon.com/nathanielksmith
|
||||
1434457394&^%krowbar&^%What languages (other than English) can you speak? | donations for tilde.town: https://www.patreon.com/nathanielksmith
|
||||
1434995963&^%krowbar&^%What mannerisms have you picked up from friends or family? | donations for tilde.town: https://www.patreon.com/nathanielksmith
|
||||
1435160342&^%krowbar&^%What is your favorite cafinated or pick-me-up drink? | donations for tilde.town: https://www.patreon.com/nathanielksmith
|
||||
1435209856&^%vilmibm&^%kiss the earth; wipe the soil from your lips and smear it on your laptop screen | donate https://www.patreon.com/nathanielksmith
|
||||
1435676406&^%krowbar&^%How do you celebrate your country or show patriotism? | donate https://www.patreon.com/nathanielksmith
|
||||
1436142566&^%vilmibm&^%fuck geopolitical borders | donate https://www.patreon.com/nathanielksmith
|
||||
1436214837&^%vilmibm&^%apply to be a tilde.town sysadmin! email nathanielksmith@gmail.com | donate https://www.patreon.com/nathanielksmith
|
||||
1437586202&^%vilmibm&^%let's talk about html and feels | donate https://www.activeworlds.com/web/index.php
|
||||
1437586215&^%vilmibm&^%let's talk about html and feels | donate https://www.patreon.com/nathanielksmith
|
||||
1437665519&^%krowbar&^%Have you ever served on a jury? How did it go? | donate https://www.patreon.com/nathanielksmith
|
||||
1437973628&^%hardmath123&^%Electronic progressive bass dubhouse Chicago step | donate https://www.patreon.com/nathanielksmith
|
||||
1438115317&^%hardmath123&^%The pink just got a whole lot pinker. | donate https://www.patreon.com/nathanielksmith
|
||||
1438368557&^%hardmath123&^%vilmibm has root on our server and in our hearts| donate https://www.patreon.com/nathanielksmith
|
||||
1438368561&^%hardmath123&^%vilmibm has root on our server and in our hearts | donate https://www.patreon.com/nathanielksmith
|
||||
1438732910&^%hardmath123&^%"We're not thinking machines, we're feeling machines that happen to think." - Peter Watts, _Blindsight_ | donate https://www.patreon.com/nathanielksmith
|
||||
1439339666&^%joe&^%~joe has a new job, let's party hard
|
||||
1439442465&^%hardmath123&^%'rejoice', said he, 'for the king has returned'
|
||||
1439443352&^%vilmibm&^%let's talk bout html and feels | congrats ~joe
|
||||
1440076665&^%krowbar&^%Let's Play Factorio together! Community event *this* Saturday 1pm-3pm GMT. Ask ~krowbar or ~jumblesale for details
|
||||
1440363401&^%krowbar&^%Welcome to tilde.town! A place where creativity abounds!
|
||||
@@ -1 +1,4 @@
|
||||
krowbar&^%0&^%1
|
||||
krowbar&^%0&^%6
|
||||
vilmibm&^%0&^%6
|
||||
hardmath123&^%0&^%6
|
||||
joe&^%0&^%1
|
||||
@@ -0,0 +1,199 @@
|
||||
aboard
|
||||
about
|
||||
above
|
||||
across
|
||||
after
|
||||
against
|
||||
along
|
||||
amid
|
||||
among
|
||||
anti
|
||||
around
|
||||
as
|
||||
at
|
||||
before
|
||||
behind
|
||||
below
|
||||
beneath
|
||||
beside
|
||||
besides
|
||||
between
|
||||
beyond
|
||||
but
|
||||
by
|
||||
concerning
|
||||
considering
|
||||
despite
|
||||
down
|
||||
during
|
||||
except
|
||||
excepting
|
||||
excluding
|
||||
following
|
||||
for
|
||||
from
|
||||
in
|
||||
inside
|
||||
into
|
||||
like
|
||||
minus
|
||||
near
|
||||
of
|
||||
off
|
||||
on
|
||||
onto
|
||||
opposite
|
||||
outside
|
||||
over
|
||||
past
|
||||
per
|
||||
plus
|
||||
regarding
|
||||
round
|
||||
save
|
||||
since
|
||||
than
|
||||
through
|
||||
to
|
||||
toward
|
||||
towards
|
||||
under
|
||||
underneath
|
||||
unlike
|
||||
until
|
||||
up
|
||||
upon
|
||||
versus
|
||||
via
|
||||
with
|
||||
within
|
||||
without
|
||||
all
|
||||
another
|
||||
any
|
||||
anybody
|
||||
anyone
|
||||
anything
|
||||
both
|
||||
each
|
||||
either
|
||||
everybody
|
||||
everyone
|
||||
everything
|
||||
few
|
||||
he
|
||||
her
|
||||
hers
|
||||
herself
|
||||
him
|
||||
himself
|
||||
his
|
||||
it
|
||||
its
|
||||
itself
|
||||
many
|
||||
me mine
|
||||
more
|
||||
most
|
||||
much
|
||||
my
|
||||
myself
|
||||
neither
|
||||
no one
|
||||
nobody
|
||||
none
|
||||
one
|
||||
other
|
||||
others
|
||||
our
|
||||
ours
|
||||
ourselves
|
||||
several
|
||||
she
|
||||
some
|
||||
somebody
|
||||
someone
|
||||
something
|
||||
that
|
||||
their
|
||||
theirs
|
||||
them
|
||||
themselves
|
||||
these
|
||||
they
|
||||
this
|
||||
those
|
||||
us
|
||||
we
|
||||
what
|
||||
whatever
|
||||
which
|
||||
whichever
|
||||
who
|
||||
whoever
|
||||
whom
|
||||
whomever
|
||||
whose
|
||||
you
|
||||
your
|
||||
yours
|
||||
yourself
|
||||
yourselves
|
||||
an
|
||||
am
|
||||
as
|
||||
to
|
||||
up
|
||||
us
|
||||
in
|
||||
be
|
||||
can
|
||||
how
|
||||
get
|
||||
got
|
||||
has
|
||||
did
|
||||
every
|
||||
also
|
||||
too
|
||||
try
|
||||
is
|
||||
was
|
||||
do
|
||||
if
|
||||
oh
|
||||
so
|
||||
ill
|
||||
are
|
||||
been
|
||||
or
|
||||
dont
|
||||
just
|
||||
had
|
||||
set
|
||||
put
|
||||
have
|
||||
im
|
||||
ive
|
||||
not
|
||||
then
|
||||
goes
|
||||
youre
|
||||
use
|
||||
id
|
||||
the
|
||||
a
|
||||
and
|
||||
i
|
||||
me
|
||||
when
|
||||
where
|
||||
how
|
||||
would
|
||||
whats
|
||||
because
|
||||
thats
|
||||
there
|
||||
doing
|
||||
even
|
||||
does
|
||||
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/python
|
||||
import fileinput
|
||||
import json
|
||||
import time
|
||||
import calendar
|
||||
import shutil
|
||||
|
||||
logfile = "/home/jumblesale/Code/irc/log"
|
||||
outfile = "/home/krowbar/logs/userData.json"
|
||||
userData = {} #hash keyed by "user" that contains an array of timestamps
|
||||
#we only care about recent chats, let's say for the past two weeks
|
||||
timeCutoff = calendar.timegm(time.gmtime()) - (2 * 7 * 24 * 60 * 60)
|
||||
|
||||
with open(logfile, "r") as log:
|
||||
for line in log:
|
||||
try:
|
||||
time, user, message = line.split("\t", 3)
|
||||
time = int(time)
|
||||
except ValueError:
|
||||
continue #There are some bad lines in the log file that we'll ignore if we can't parse
|
||||
if time > timeCutoff:
|
||||
#if the user already exists in the list
|
||||
if user in userData:
|
||||
userData[user].append(time) #append the new time
|
||||
else: #if they are new
|
||||
userData[user] = [time] #create a new list
|
||||
with open(outfile + ".tmp", "w") as tmpFile:
|
||||
tmpFile.write(json.dumps(userData))
|
||||
shutil.move(outfile + ".tmp", outfile)
|
||||
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/python
|
||||
import fileinput
|
||||
import json
|
||||
import time
|
||||
import calendar
|
||||
import re
|
||||
import shutil
|
||||
|
||||
logfile = "/home/jumblesale/Code/irc/log"
|
||||
outfile = "/home/krowbar/logs/chatcloud.json"
|
||||
bannedWordsFile = "/home/krowbar/Code/python/bannedWords"
|
||||
wordData = {} # keyed by "word" that contains a count
|
||||
#we only care about recent chats, let's say for the past two weeks
|
||||
timeCutoff = calendar.timegm(time.gmtime()) - (2 * 7 * 24 * 60 * 60)
|
||||
minOccurance = 10
|
||||
bannedWords = open(bannedWordsFile).read().splitlines()
|
||||
|
||||
with open(logfile, "r") as log:
|
||||
for line in log:
|
||||
try:
|
||||
time, user, message = line.split("\t", 3)
|
||||
time = int(time)
|
||||
except ValueError:
|
||||
continue #There are some bad lines in the log file that we'll ignore if we can't parse
|
||||
if time > timeCutoff:
|
||||
for word in re.sub('[\'\";:,.?!*&^\-()\[\]]', '', message).lower().split():
|
||||
if word in bannedWords:
|
||||
continue
|
||||
#if the word already exists in the list
|
||||
if word in wordData:
|
||||
wordData[word] += 1
|
||||
else: #if they are new
|
||||
wordData[word] = 1
|
||||
#print "Added word: " + word
|
||||
wordData = {i:wordData[i] for i in wordData if wordData[i] >= minOccurance }
|
||||
with open(outfile + ".tmp", "w") as tmpFile:
|
||||
tmpFile.write(json.dumps(wordData))
|
||||
shutil.move(outfile + ".tmp", outfile)
|
||||
Reference in new issue
Block a user