Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python3
'''
ping.py - Phenny Ping Module
Author: Sean B. Palmer, inamidst.com
About: http://inamidst.com/phenny/
Modified from ping.py by Amos
Modified by Jordan Kinsley <[email protected]>
'''
#!/usr/bin/env python
"""
seen.py - Phenny seen module
"""
import sqlite3 as lite
import os
def db_connect(db):
return lite.connect(db, check_same_thread = False)
import sqlite3 as lite
import os
conn = lite.connect(os.path.join(os.path.expanduser('~/.phenny'), 'seen.db'))
c = conn.cursor()
c.execute('''create table if not exists seen(
nick varchar(31) NOT NULL PRIMARY KEY,
channel varchar(31) NOT NULL,
message text,
event varchar(10) NOT NULL,
#!/usr/bin/python3
'''
party.py - Pinkie's new nick greeting module
(C) 2012 Jordan Kinsley <[email protected]>
(C) 2013 Kazune <[email protected]>
GPLv2 or later
This module checks for when a new nick joins the channel, and if the nick
hasn't been seen before, she will throw them a party.
'''
@ask-compu
ask-compu / timer.py
Last active August 28, 2015 03:20
timer
class EpReminder
def __init__(self, phenny):
self.phenny = phenny
_thread.start_new_thread(cycle_to_next_ep())
def cycle_to_next_ep(self):
prev_j = {}
while True:
j = get_ep_info
if j is prev_j: