Browse Source

moving IRC class modules (base_command.py, connection.py, data.py, rc.py) to irc/classes/

tags/v0.1^2
Ben Kurtovic 13 years ago
parent
commit
a06e35ecef
15 changed files with 17 additions and 15 deletions
  1. +4
    -0
      irc/classes/__init__.py
  2. +0
    -0
      irc/classes/base_command.py
  3. +0
    -0
      irc/classes/connection.py
  4. +0
    -0
      irc/classes/data.py
  5. +0
    -0
      irc/classes/rc.py
  6. +1
    -1
      irc/commands/afc_status.py
  7. +1
    -1
      irc/commands/calc.py
  8. +1
    -1
      irc/commands/chanops.py
  9. +4
    -2
      irc/commands/git.py
  10. +1
    -2
      irc/commands/help.py
  11. +1
    -1
      irc/commands/link.py
  12. +1
    -2
      irc/commands/tasks.py
  13. +1
    -1
      irc/commands/test.py
  14. +1
    -2
      irc/frontend.py
  15. +1
    -2
      irc/watcher.py

+ 4
- 0
irc/classes/__init__.py View File

@@ -0,0 +1,4 @@
from base_command import *
from connection import *
from data import *
from rc import *

irc/base_command.py → irc/classes/base_command.py View File


irc/connection.py → irc/classes/connection.py View File


irc/data.py → irc/classes/data.py View File


irc/rc.py → irc/classes/rc.py View File


+ 1
- 1
irc/commands/afc_status.py View File

@@ -6,7 +6,7 @@ import json
import re import re
import urllib import urllib


from irc.base_command import BaseCommand
from irc.classes import BaseCommand


class AFCStatus(BaseCommand): class AFCStatus(BaseCommand):
def get_hooks(self): def get_hooks(self):


+ 1
- 1
irc/commands/calc.py View File

@@ -5,7 +5,7 @@
import re import re
import urllib import urllib


from irc.base_command import BaseCommand
from irc.classes import BaseCommand


class Calc(BaseCommand): class Calc(BaseCommand):
def get_hooks(self): def get_hooks(self):


+ 1
- 1
irc/commands/chanops.py View File

@@ -2,7 +2,7 @@


# Voice/devoice/op/deop users in the channel. # Voice/devoice/op/deop users in the channel.


from irc.base_command import BaseCommand
from irc.classes import BaseCommand
from core import config from core import config


class ChanOps(BaseCommand): class ChanOps(BaseCommand):


+ 4
- 2
irc/commands/git.py View File

@@ -2,9 +2,11 @@


# Commands to interface with the bot's git repository; use '!git help' for sub-command list. # Commands to interface with the bot's git repository; use '!git help' for sub-command list.


import shlex, subprocess, re
import shlex
import subprocess
import re


from irc.base_command import BaseCommand
from irc.classes import BaseCommand
from core import config from core import config


class Git(BaseCommand): class Git(BaseCommand):


+ 1
- 2
irc/commands/help.py View File

@@ -2,8 +2,7 @@


# Generates help information. # Generates help information.


from irc.base_command import BaseCommand
from irc.data import Data
from irc.classes import BaseCommand, Data
from irc import command_handler from irc import command_handler


class Help(BaseCommand): class Help(BaseCommand):


+ 1
- 1
irc/commands/link.py View File

@@ -4,7 +4,7 @@


import re import re


from irc.base_command import BaseCommand
from irc.classes import BaseCommand


class Link(BaseCommand): class Link(BaseCommand):
def get_hooks(self): def get_hooks(self):


+ 1
- 2
irc/commands/tasks.py View File

@@ -5,8 +5,7 @@
import threading import threading
import re import re


from irc.base_command import BaseCommand
from irc.data import *
from irc.classes import BaseCommand, Data, KwargParseException
from wiki import task_manager from wiki import task_manager
from core import config from core import config




+ 1
- 1
irc/commands/test.py View File

@@ -4,7 +4,7 @@


import random import random


from irc.base_command import BaseCommand
from irc.classes import BaseCommand


class Test(BaseCommand): class Test(BaseCommand):
def get_hooks(self): def get_hooks(self):


+ 1
- 2
irc/frontend.py View File

@@ -13,8 +13,7 @@ from re import findall


from core import config from core import config
from irc import command_handler from irc import command_handler
from irc.connection import *
from irc.data import Data
from irc.classes import Connection, Data, BrokenSocketException


connection = None connection = None




+ 1
- 2
irc/watcher.py View File

@@ -11,8 +11,7 @@ channels in the IRC frontend.
""" """


from core import config from core import config
from irc.connection import *
from irc.rc import RC
from irc.classes import Connection, RC, BrokenSocketException
from irc import watcher_logic from irc import watcher_logic


frontend_conn = None frontend_conn = None


Loading…
Cancel
Save