Ver código fonte

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

tags/v0.1^2
Ben Kurtovic 13 anos atrás
pai
commit
a06e35ecef
15 arquivos alterados com 17 adições e 15 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo


irc/connection.py → irc/classes/connection.py Ver arquivo


irc/data.py → irc/classes/data.py Ver arquivo


irc/rc.py → irc/classes/rc.py Ver arquivo


+ 1
- 1
irc/commands/afc_status.py Ver arquivo

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

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

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


+ 1
- 1
irc/commands/calc.py Ver arquivo

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

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

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


+ 1
- 1
irc/commands/chanops.py Ver arquivo

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

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

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

class ChanOps(BaseCommand):


+ 4
- 2
irc/commands/git.py Ver arquivo

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

# 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

class Git(BaseCommand):


+ 1
- 2
irc/commands/help.py Ver arquivo

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

# 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

class Help(BaseCommand):


+ 1
- 1
irc/commands/link.py Ver arquivo

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

import re

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

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


+ 1
- 2
irc/commands/tasks.py Ver arquivo

@@ -5,8 +5,7 @@
import threading
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 core import config



+ 1
- 1
irc/commands/test.py Ver arquivo

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

import random

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

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


+ 1
- 2
irc/frontend.py Ver arquivo

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

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

connection = None



+ 1
- 2
irc/watcher.py Ver arquivo

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

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

frontend_conn = None


Carregando…
Cancelar
Salvar