This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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]> | |
''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. | |
''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
NewerOlder