mirror of
https://github.com/solero/houdini.git
synced 2024-11-24 14:37:22 +00:00
Organise imports
This commit is contained in:
parent
7af9344a00
commit
613510f8f7
@ -1,9 +1,9 @@
|
|||||||
|
import argparse
|
||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
import argparse
|
|
||||||
|
|
||||||
|
from houdini.constants import ClientType, ConflictResolution, Language
|
||||||
from houdini.houdini import Houdini
|
from houdini.houdini import Houdini
|
||||||
from houdini.constants import Language, ConflictResolution, ClientType
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
logger = logging.getLogger('houdini')
|
logger = logging.getLogger('houdini')
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
|
import asyncio
|
||||||
|
import importlib
|
||||||
|
import logging
|
||||||
|
import pkgutil
|
||||||
|
from abc import ABC, abstractmethod
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from types import FunctionType
|
from types import FunctionType
|
||||||
from abc import abstractmethod
|
|
||||||
|
|
||||||
import asyncio
|
|
||||||
import logging
|
|
||||||
import importlib
|
|
||||||
import pkgutil
|
|
||||||
|
|
||||||
|
|
||||||
def get_package_modules(package):
|
def get_package_modules(package):
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
import inspect
|
import inspect
|
||||||
|
|
||||||
from houdini import handlers
|
from houdini import _AbstractManager, handlers, plugins
|
||||||
from houdini import plugins
|
|
||||||
from houdini import _AbstractManager
|
|
||||||
from houdini.constants import ConflictResolution
|
from houdini.constants import ConflictResolution
|
||||||
|
|
||||||
from houdini.converters import _ArgumentDeserializer, _listener
|
from houdini.converters import _ArgumentDeserializer, _listener
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,18 +1,15 @@
|
|||||||
from abc import ABC
|
|
||||||
from abc import abstractmethod
|
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import itertools
|
|
||||||
import inspect
|
|
||||||
import collections
|
import collections
|
||||||
|
import inspect
|
||||||
|
import itertools
|
||||||
|
from abc import ABC, abstractmethod
|
||||||
|
|
||||||
from houdini.cooldown import CooldownError
|
from houdini.cooldown import CooldownError
|
||||||
|
from houdini.data.igloo import Flooring, Furniture, Igloo, Location
|
||||||
from houdini.data.room import Room
|
|
||||||
from houdini.data.item import Item
|
from houdini.data.item import Item
|
||||||
from houdini.data.igloo import Igloo, Furniture, Flooring, Location
|
from houdini.data.pet import PenguinPuffle, Puffle
|
||||||
|
from houdini.data.room import Room
|
||||||
from houdini.data.stamp import Stamp
|
from houdini.data.stamp import Stamp
|
||||||
from houdini.data.pet import Puffle, PenguinPuffle
|
|
||||||
|
|
||||||
|
|
||||||
class ChecklistError(Exception):
|
class ChecklistError(Exception):
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
from gino import Gino
|
|
||||||
from collections.abc import Mapping
|
from collections.abc import Mapping
|
||||||
|
|
||||||
|
from gino import Gino
|
||||||
|
|
||||||
db = Gino()
|
db = Gino()
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from houdini.data import db, AbstractDataCollection
|
from houdini.data import AbstractDataCollection, db
|
||||||
|
|
||||||
|
|
||||||
class BuddyList(db.Model):
|
class BuddyList(db.Model):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from houdini.data import db, AbstractDataCollection
|
from houdini.data import AbstractDataCollection, db
|
||||||
|
|
||||||
|
|
||||||
class DanceSong(db.Model):
|
class DanceSong(db.Model):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from houdini.data import db, AbstractDataCollection
|
from houdini.data import AbstractDataCollection, db
|
||||||
|
|
||||||
|
|
||||||
class Flooring(db.Model):
|
class Flooring(db.Model):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from houdini.data import db, AbstractDataCollection
|
from houdini.data import AbstractDataCollection, db
|
||||||
|
|
||||||
|
|
||||||
class Item(db.Model):
|
class Item(db.Model):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from houdini.data import db, AbstractDataCollection
|
from houdini.data import AbstractDataCollection, db
|
||||||
|
|
||||||
|
|
||||||
class Postcard(db.Model):
|
class Postcard(db.Model):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from houdini.data import db, AbstractDataCollection
|
from houdini.data import AbstractDataCollection, db
|
||||||
|
|
||||||
|
|
||||||
class Ban(db.Model):
|
class Ban(db.Model):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from houdini.data import db, AbstractDataCollection
|
from houdini.data import AbstractDataCollection, db
|
||||||
|
|
||||||
|
|
||||||
class Card(db.Model):
|
class Card(db.Model):
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
from functools import lru_cache
|
||||||
|
|
||||||
from houdini.data import db
|
from houdini.data import db
|
||||||
|
|
||||||
from functools import lru_cache
|
|
||||||
|
|
||||||
|
|
||||||
class Penguin(db.Model):
|
class Penguin(db.Model):
|
||||||
__tablename__ = 'penguin'
|
__tablename__ = 'penguin'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from houdini.data import db, AbstractDataCollection
|
from houdini.data import AbstractDataCollection, db
|
||||||
|
|
||||||
|
|
||||||
class Permission(db.Model):
|
class Permission(db.Model):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from houdini.data import db, AbstractDataCollection
|
from houdini.data import AbstractDataCollection, db
|
||||||
|
|
||||||
|
|
||||||
class Puffle(db.Model):
|
class Puffle(db.Model):
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
from houdini.games.sled import SledRacingLogic
|
from houdini.data import AbstractDataCollection, db
|
||||||
from houdini.games.four import ConnectFourLogic
|
|
||||||
from houdini.games.mancala import MancalaLogic
|
|
||||||
from houdini.games.treasure import TreasureHuntLogic
|
|
||||||
|
|
||||||
from houdini.data import db, AbstractDataCollection
|
|
||||||
|
|
||||||
|
|
||||||
def stealth_mod_filter(stealth_mod_id):
|
def stealth_mod_filter(stealth_mod_id):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from houdini.data import db, AbstractDataCollection
|
from houdini.data import AbstractDataCollection, db
|
||||||
|
|
||||||
|
|
||||||
class Stamp(db.Model):
|
class Stamp(db.Model):
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import inspect
|
|
||||||
import enum
|
import enum
|
||||||
|
import inspect
|
||||||
import itertools
|
import itertools
|
||||||
from types import FunctionType
|
from types import FunctionType
|
||||||
|
|
||||||
from houdini.converters import _listener, _ArgumentDeserializer, get_converter, \
|
from houdini import _AbstractManager, get_package_modules, plugins
|
||||||
do_conversion, _ConverterContext, ChecklistError
|
from houdini.converters import ChecklistError, _ArgumentDeserializer, _ConverterContext, _listener, do_conversion, \
|
||||||
from houdini.cooldown import _Cooldown, _CooldownMapping, BucketType, CooldownError
|
get_converter
|
||||||
from houdini import plugins, _AbstractManager, get_package_modules
|
from houdini.cooldown import BucketType, CooldownError, _Cooldown, _CooldownMapping
|
||||||
|
|
||||||
|
|
||||||
class AuthorityError(Exception):
|
class AuthorityError(Exception):
|
||||||
|
@ -1,17 +1,16 @@
|
|||||||
from houdini import handlers
|
import random
|
||||||
from houdini.handlers import XTPacket
|
import time
|
||||||
from houdini.converters import OptionalConverter
|
|
||||||
from houdini.constants import ClientType
|
|
||||||
from houdini.handlers.play.navigation import handle_join_room
|
|
||||||
from houdini.handlers.play.moderation import cheat_ban
|
|
||||||
from houdini.data.room import Room
|
|
||||||
from houdini.data.game import PenguinGameData
|
|
||||||
|
|
||||||
from sqlalchemy.dialects.postgresql import insert
|
from sqlalchemy.dialects.postgresql import insert
|
||||||
|
|
||||||
import time
|
from houdini import handlers
|
||||||
import random
|
from houdini.constants import ClientType
|
||||||
|
from houdini.converters import OptionalConverter
|
||||||
|
from houdini.data.game import PenguinGameData
|
||||||
|
from houdini.data.room import Room
|
||||||
|
from houdini.handlers import XTPacket
|
||||||
|
from houdini.handlers.play.moderation import cheat_ban
|
||||||
|
from houdini.handlers.play.navigation import handle_join_room
|
||||||
|
|
||||||
default_score_games = {904, 905, 906, 912, 916, 917, 918, 919, 950, 952}
|
default_score_games = {904, 905, 906, 912, 916, 917, 918, 919, 950, 952}
|
||||||
|
|
||||||
|
@ -1,15 +1,14 @@
|
|||||||
from houdini import handlers
|
|
||||||
from houdini.handlers import XTPacket
|
|
||||||
from houdini.data.dance import DanceSongCollection
|
|
||||||
from houdini.penguin import Penguin
|
|
||||||
|
|
||||||
import random
|
|
||||||
import time
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import itertools
|
import itertools
|
||||||
|
import random
|
||||||
|
import time
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
||||||
|
from houdini import handlers
|
||||||
|
from houdini.data.dance import DanceSongCollection
|
||||||
|
from houdini.handlers import XTPacket
|
||||||
|
from houdini.penguin import Penguin
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class Dancer:
|
class Dancer:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
from houdini import handlers
|
from houdini import ITable, handlers
|
||||||
from houdini.handlers import XTPacket
|
from houdini.handlers import XTPacket
|
||||||
from houdini.handlers.games.table import table_handler
|
|
||||||
from houdini.games.four import ConnectFourLogic
|
|
||||||
|
|
||||||
|
|
||||||
@handlers.handler(XTPacket('gz', ext='z'))
|
@handlers.handler(XTPacket('gz', ext='z'))
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
from houdini import handlers
|
from houdini import ITable, handlers
|
||||||
from houdini.handlers import XTPacket
|
from houdini.handlers import XTPacket
|
||||||
from houdini.handlers.games.table import table_handler
|
|
||||||
from houdini.games.mancala import MancalaLogic
|
|
||||||
|
|
||||||
|
|
||||||
@handlers.handler(XTPacket('gz', ext='z'))
|
@handlers.handler(XTPacket('gz', ext='z'))
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
from houdini import handlers
|
from houdini import IWaddle, handlers
|
||||||
from houdini.handlers import XTPacket
|
from houdini.handlers import XTPacket
|
||||||
from houdini.handlers.games.waddle import waddle_handler
|
|
||||||
from houdini.games.sled import SledRacingLogic
|
|
||||||
|
|
||||||
|
|
||||||
@handlers.handler(XTPacket('jz', ext='z'))
|
@handlers.handler(XTPacket('jz', ext='z'))
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
from houdini import handlers
|
import random
|
||||||
|
|
||||||
|
from houdini import ITable, handlers
|
||||||
from houdini.handlers import XTPacket
|
from houdini.handlers import XTPacket
|
||||||
from houdini.handlers.games.table import table_handler
|
|
||||||
from houdini.games.treasure import TreasureHuntLogic
|
|
||||||
|
|
||||||
|
|
||||||
@handlers.handler(XTPacket('gz', ext='z'))
|
@handlers.handler(XTPacket('gz', ext='z'))
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
from houdini import handlers
|
from houdini import handlers
|
||||||
from houdini.handlers import XMLPacket
|
|
||||||
from houdini.converters import VersionChkConverter
|
|
||||||
from houdini.constants import ClientType
|
from houdini.constants import ClientType
|
||||||
|
from houdini.converters import VersionChkConverter
|
||||||
from houdini.data.buddy import BuddyList
|
from houdini.data.buddy import BuddyList
|
||||||
|
from houdini.handlers import XMLPacket
|
||||||
|
|
||||||
|
|
||||||
@handlers.handler(XMLPacket('verChk'))
|
@handlers.handler(XMLPacket('verChk'))
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
|
import asyncio
|
||||||
|
import os
|
||||||
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
|
import bcrypt
|
||||||
|
|
||||||
from houdini import handlers
|
from houdini import handlers
|
||||||
|
from houdini.constants import ClientType
|
||||||
|
from houdini.converters import Credentials
|
||||||
|
from houdini.crypto import Crypto
|
||||||
|
from houdini.data.moderator import Ban
|
||||||
|
from houdini.data.penguin import Penguin
|
||||||
from houdini.handlers import XMLPacket
|
from houdini.handlers import XMLPacket
|
||||||
from houdini.handlers.login import get_server_presence
|
from houdini.handlers.login import get_server_presence
|
||||||
from houdini.handlers.play.navigation import get_minutes_played_today
|
from houdini.handlers.play.navigation import get_minutes_played_today
|
||||||
from houdini.converters import Credentials
|
|
||||||
from houdini.data.penguin import Penguin
|
|
||||||
from houdini.data.moderator import Ban
|
|
||||||
from houdini.crypto import Crypto
|
|
||||||
from houdini.constants import ClientType
|
|
||||||
|
|
||||||
import asyncio
|
|
||||||
import bcrypt
|
|
||||||
import os
|
|
||||||
|
|
||||||
from datetime import datetime, timedelta
|
|
||||||
|
|
||||||
|
|
||||||
@handlers.handler(XMLPacket('login'))
|
@handlers.handler(XMLPacket('login'))
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
from houdini import handlers
|
|
||||||
from houdini.handlers import XMLPacket, login
|
|
||||||
from houdini.converters import WorldCredentials, Credentials
|
|
||||||
from houdini.data.penguin import Penguin
|
|
||||||
from houdini.data.moderator import Ban
|
|
||||||
from houdini.crypto import Crypto
|
|
||||||
from houdini.constants import ClientType
|
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
from houdini import handlers
|
||||||
|
from houdini.constants import ClientType
|
||||||
|
from houdini.converters import Credentials, WorldCredentials
|
||||||
|
from houdini.crypto import Crypto
|
||||||
|
from houdini.data.moderator import Ban
|
||||||
|
from houdini.data.penguin import Penguin
|
||||||
|
from houdini.handlers import XMLPacket, login
|
||||||
|
|
||||||
handle_version_check = login.handle_version_check
|
handle_version_check = login.handle_version_check
|
||||||
handle_random_key = login.handle_random_key
|
handle_random_key = login.handle_random_key
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
from houdini import handlers
|
from houdini import handlers
|
||||||
from houdini.handlers import XTPacket
|
|
||||||
from houdini.constants import ClientType
|
from houdini.constants import ClientType
|
||||||
|
from houdini.handlers import XTPacket
|
||||||
|
|
||||||
|
|
||||||
@handlers.handler(XTPacket('pt', 'spts'), client=ClientType.Vanilla)
|
@handlers.handler(XTPacket('pt', 'spts'), client=ClientType.Vanilla)
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
from houdini import handlers
|
from houdini import handlers
|
||||||
from houdini.handlers import XMLPacket, XTPacket
|
|
||||||
from houdini.handlers.play.navigation import handle_join_room
|
|
||||||
from houdini.handlers import Priority
|
|
||||||
|
|
||||||
from houdini.data.penguin import Penguin
|
|
||||||
from houdini.data.buddy import BuddyList, BuddyRequest, BuddyListCollection, \
|
|
||||||
BuddyRequestCollection, CharacterBuddyCollection, CharacterCollection
|
|
||||||
from houdini.constants import ClientType
|
from houdini.constants import ClientType
|
||||||
|
from houdini.data.buddy import BuddyList, BuddyListCollection, BuddyRequest, BuddyRequestCollection, \
|
||||||
|
CharacterBuddyCollection, CharacterCollection
|
||||||
|
from houdini.data.penguin import Penguin
|
||||||
|
from houdini.handlers import Priority, XMLPacket, XTPacket
|
||||||
|
from houdini.handlers.play.navigation import handle_join_room
|
||||||
|
|
||||||
|
|
||||||
async def update_player_presence(p):
|
async def update_player_presence(p):
|
||||||
|
@ -1,17 +1,16 @@
|
|||||||
from houdini import handlers
|
import datetime
|
||||||
from houdini.handlers import XTPacket
|
import random
|
||||||
from houdini.handlers.play.mail import handle_start_mail_engine
|
import time
|
||||||
|
|
||||||
|
from aiocache import cached
|
||||||
|
|
||||||
|
from houdini import handlers
|
||||||
|
from houdini.constants import ClientType
|
||||||
from houdini.data.item import Item
|
from houdini.data.item import Item
|
||||||
from houdini.data.mail import PenguinPostcard
|
from houdini.data.mail import PenguinPostcard
|
||||||
from houdini.data.penguin import EpfComMessage
|
from houdini.data.penguin import EpfComMessage
|
||||||
from houdini.constants import ClientType
|
from houdini.handlers import XTPacket
|
||||||
|
from houdini.handlers.play.mail import handle_start_mail_engine
|
||||||
import datetime
|
|
||||||
import time
|
|
||||||
import random
|
|
||||||
|
|
||||||
from aiocache import cached
|
|
||||||
|
|
||||||
|
|
||||||
@cached(alias='default', key='com_messages')
|
@cached(alias='default', key='com_messages')
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
from houdini import handlers
|
|
||||||
from houdini.handlers import XTPacket
|
|
||||||
from houdini.handlers.play.navigation import handle_join_server, handle_join_room, handle_join_player_room
|
|
||||||
|
|
||||||
from houdini.data import db
|
|
||||||
from houdini.data.quest import Quest, QuestAwardItem, QuestAwardFurniture, QuestAwardPuffleItem, QuestTask
|
|
||||||
from houdini.data.quest import PenguinQuestTask
|
|
||||||
|
|
||||||
import ujson
|
import ujson
|
||||||
from aiocache import cached
|
from aiocache import cached
|
||||||
|
|
||||||
|
from houdini import handlers
|
||||||
|
from houdini.data import db
|
||||||
|
from houdini.data.quest import PenguinQuestTask, Quest, QuestAwardFurniture, QuestAwardItem, QuestAwardPuffleItem, \
|
||||||
|
QuestTask
|
||||||
|
from houdini.handlers import XTPacket
|
||||||
|
from houdini.handlers.play.navigation import handle_join_player_room, handle_join_room, handle_join_server
|
||||||
|
|
||||||
|
|
||||||
def get_status_key(_, p):
|
def get_status_key(_, p):
|
||||||
return f'quest.status.{p.id}'
|
return f'quest.status.{p.id}'
|
||||||
|
@ -1,28 +1,23 @@
|
|||||||
import itertools
|
import itertools
|
||||||
import ujson
|
|
||||||
import time
|
import time
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
from houdini import handlers
|
import ujson
|
||||||
from houdini.handlers import XMLPacket, XTPacket, Priority
|
from aiocache import cached
|
||||||
from houdini.converters import SeparatorConverter
|
|
||||||
from houdini.constants import ClientType, StatusField
|
|
||||||
from houdini.handlers.play.navigation import handle_join_server
|
|
||||||
|
|
||||||
from houdini.data import db
|
|
||||||
from houdini.data.penguin import Penguin
|
|
||||||
from houdini.data.room import PenguinIglooRoom
|
|
||||||
from houdini.data.igloo import IglooFurniture, IglooLike, Igloo, Furniture, Flooring, Location, \
|
|
||||||
IglooCollection, FurnitureCollection, \
|
|
||||||
FlooringCollection, LocationCollection,\
|
|
||||||
PenguinIglooCollection, PenguinFurnitureCollection, \
|
|
||||||
PenguinFlooringCollection, PenguinLocationCollection
|
|
||||||
from houdini.data.room import PenguinIglooRoomCollection
|
|
||||||
from houdini.data.game import PenguinGameData
|
|
||||||
|
|
||||||
from sqlalchemy.dialects.postgresql import insert
|
from sqlalchemy.dialects.postgresql import insert
|
||||||
|
|
||||||
from aiocache import cached
|
from houdini import handlers
|
||||||
|
from houdini.constants import ClientType, StatusField
|
||||||
|
from houdini.converters import SeparatorConverter
|
||||||
|
from houdini.data import db
|
||||||
|
from houdini.data.game import PenguinGameData
|
||||||
|
from houdini.data.igloo import Flooring, FlooringCollection, Furniture, FurnitureCollection, Igloo, IglooCollection, \
|
||||||
|
IglooFurniture, IglooLike, Location, LocationCollection, PenguinFlooringCollection, PenguinFurnitureCollection, \
|
||||||
|
PenguinIglooCollection, PenguinLocationCollection
|
||||||
|
from houdini.data.penguin import Penguin
|
||||||
|
from houdini.data.room import PenguinIglooRoom, PenguinIglooRoomCollection
|
||||||
|
from houdini.handlers import Priority, XMLPacket, XTPacket
|
||||||
|
from houdini.handlers.play.navigation import handle_join_server
|
||||||
|
|
||||||
|
|
||||||
def get_layout_furniture_key(_, p, igloo_id):
|
def get_layout_furniture_key(_, p, igloo_id):
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
from houdini import handlers
|
from houdini import handlers
|
||||||
from houdini.handlers import XMLPacket, XTPacket, Priority
|
|
||||||
|
|
||||||
from houdini.data.penguin import Penguin
|
|
||||||
from houdini.data.buddy import IgnoreList, IgnoreListCollection
|
from houdini.data.buddy import IgnoreList, IgnoreListCollection
|
||||||
|
from houdini.data.penguin import Penguin
|
||||||
|
from houdini.handlers import Priority, XMLPacket, XTPacket
|
||||||
|
|
||||||
|
|
||||||
@handlers.handler(XMLPacket('login'), priority=Priority.Low)
|
@handlers.handler(XMLPacket('login'), priority=Priority.Low)
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
|
import operator
|
||||||
|
import time
|
||||||
|
|
||||||
|
from aiocache import cached
|
||||||
|
|
||||||
from houdini import handlers
|
from houdini import handlers
|
||||||
from houdini.handlers import XMLPacket, XTPacket, Priority
|
|
||||||
from houdini.data.item import Item, ItemCollection, PenguinItemCollection
|
from houdini.data.item import Item, ItemCollection, PenguinItemCollection
|
||||||
from houdini.data.permission import PenguinPermissionCollection
|
from houdini.data.permission import PenguinPermissionCollection
|
||||||
|
from houdini.handlers import Priority, XMLPacket, XTPacket
|
||||||
import time
|
|
||||||
from aiocache import cached
|
|
||||||
import operator
|
|
||||||
|
|
||||||
|
|
||||||
def get_pin_string_key(_, p, player_id):
|
def get_pin_string_key(_, p, player_id):
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
from houdini import handlers
|
import time
|
||||||
from houdini.handlers import XTPacket
|
|
||||||
|
|
||||||
|
from houdini import handlers
|
||||||
from houdini.data import db
|
from houdini.data import db
|
||||||
from houdini.data.penguin import Penguin
|
|
||||||
from houdini.data.buddy import IgnoreList
|
from houdini.data.buddy import IgnoreList
|
||||||
from houdini.data.mail import PenguinPostcard, PostcardCollection
|
from houdini.data.mail import PenguinPostcard, PostcardCollection
|
||||||
|
from houdini.data.penguin import Penguin
|
||||||
import time
|
from houdini.handlers import XTPacket
|
||||||
|
|
||||||
|
|
||||||
@handlers.boot
|
@handlers.boot
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
from houdini import handlers
|
from houdini import handlers
|
||||||
|
from houdini.commands import has_command_prefix, invoke_command_string
|
||||||
|
from houdini.data.moderator import ChatFilterRuleCollection
|
||||||
from houdini.handlers import XTPacket
|
from houdini.handlers import XTPacket
|
||||||
from houdini.handlers.play.moderation import moderator_ban
|
from houdini.handlers.play.moderation import moderator_ban
|
||||||
|
|
||||||
from houdini.commands import invoke_command_string, has_command_prefix
|
|
||||||
|
|
||||||
from houdini.data.moderator import ChatFilterRuleCollection
|
|
||||||
|
|
||||||
|
|
||||||
@handlers.boot
|
@handlers.boot
|
||||||
async def filter_load(server):
|
async def filter_load(server):
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
from houdini import handlers
|
|
||||||
from houdini.data import db
|
|
||||||
from houdini.handlers import XTPacket
|
|
||||||
from houdini.data.moderator import Ban, Warning, Report
|
|
||||||
from houdini.data.penguin import Penguin
|
|
||||||
from houdini.constants import ClientType
|
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
from houdini import handlers
|
||||||
|
from houdini.constants import ClientType
|
||||||
|
from houdini.data import db
|
||||||
|
from houdini.data.moderator import Ban, Report, Warning
|
||||||
|
from houdini.data.penguin import Penguin
|
||||||
|
from houdini.handlers import XTPacket
|
||||||
|
|
||||||
|
|
||||||
@handlers.handler(XTPacket('o', 'k'))
|
@handlers.handler(XTPacket('o', 'k'))
|
||||||
async def handle_kick_player(p, penguin_id: int):
|
async def handle_kick_player(p, penguin_id: int):
|
||||||
|
@ -1,16 +1,15 @@
|
|||||||
from houdini import handlers
|
import asyncio
|
||||||
from houdini.handlers import XTPacket
|
import re
|
||||||
|
from datetime import date, datetime
|
||||||
from houdini.data import db
|
|
||||||
from houdini.data.music import PenguinTrack, TrackLike
|
|
||||||
from houdini.constants import ClientType
|
|
||||||
from houdini.crypto import Crypto
|
|
||||||
|
|
||||||
from gino.loader import ColumnLoader
|
from gino.loader import ColumnLoader
|
||||||
|
|
||||||
from datetime import datetime, date
|
from houdini import handlers
|
||||||
import asyncio
|
from houdini.constants import ClientType
|
||||||
import re
|
from houdini.crypto import Crypto
|
||||||
|
from houdini.data import db
|
||||||
|
from houdini.data.music import PenguinTrack, TrackLike
|
||||||
|
from houdini.handlers import XTPacket
|
||||||
|
|
||||||
|
|
||||||
class SoundStudio:
|
class SoundStudio:
|
||||||
|
@ -1,10 +1,23 @@
|
|||||||
|
import hashlib
|
||||||
|
import random
|
||||||
|
import time
|
||||||
|
from datetime import date, datetime
|
||||||
|
|
||||||
|
import pytz
|
||||||
|
|
||||||
from houdini import handlers
|
from houdini import handlers
|
||||||
from houdini.handlers import XTPacket
|
|
||||||
from houdini.data import db
|
|
||||||
from houdini.data.room import Room
|
|
||||||
from houdini.data.penguin import Penguin, Login
|
|
||||||
from houdini.data.room import PenguinIglooRoom, PenguinBackyardRoom, RoomCollection
|
|
||||||
from houdini.constants import ClientType, StatusField
|
from houdini.constants import ClientType, StatusField
|
||||||
|
from houdini.data import db
|
||||||
|
from houdini.data.penguin import Login, Penguin
|
||||||
|
from houdini.data.room import PenguinBackyardRoom, PenguinIglooRoom, Room, RoomCollection, RoomTable, RoomWaddle
|
||||||
|
from houdini.handlers import XTPacket
|
||||||
|
from houdini.handlers.games.four import ConnectFourLogic
|
||||||
|
from houdini.handlers.games.mancala import MancalaLogic
|
||||||
|
from houdini.handlers.games.ninja.card import CardJitsuLogic, SenseiLogic
|
||||||
|
from houdini.handlers.games.ninja.fire import CardJitsuFireLogic, FireSenseiLogic
|
||||||
|
from houdini.handlers.games.ninja.water import CardJitsuWaterLogic, WaterSenseiLogic
|
||||||
|
from houdini.handlers.games.sled import SledRacingLogic
|
||||||
|
from houdini.handlers.games.treasure import TreasureHuntLogic
|
||||||
|
|
||||||
import random
|
import random
|
||||||
import time
|
import time
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
from houdini import handlers
|
from houdini import handlers
|
||||||
from houdini.handlers import XMLPacket, XTPacket, Priority
|
from houdini.handlers import XTPacket
|
||||||
from houdini.data.ninja import PenguinCardCollection, CardCollection
|
|
||||||
|
|
||||||
|
|
||||||
@handlers.boot
|
@handlers.boot
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
from houdini import handlers
|
|
||||||
from houdini.handlers import XTPacket
|
|
||||||
|
|
||||||
|
|
||||||
import ujson
|
import ujson
|
||||||
|
|
||||||
|
from houdini import handlers
|
||||||
|
from houdini.handlers import XTPacket
|
||||||
|
|
||||||
DefaultPartyCookie = {
|
DefaultPartyCookie = {
|
||||||
'msgViewedArray': [0] * 10,
|
'msgViewedArray': [0] * 10,
|
||||||
|
@ -1,21 +1,16 @@
|
|||||||
from houdini import handlers
|
|
||||||
from houdini.handlers import XMLPacket, XTPacket, Priority
|
|
||||||
from houdini.constants import ClientType, StatusField
|
|
||||||
|
|
||||||
from houdini.data.pet import PenguinPuffleCollection, PenguinPuffleItemCollection, PenguinPuffle, \
|
|
||||||
PuffleCollection, PuffleItemCollection, \
|
|
||||||
PuffleTreasureFurniture, PuffleTreasureItem, \
|
|
||||||
PuffleTreasurePuffleItem
|
|
||||||
from houdini.data.room import PenguinBackyardRoom, PenguinIglooRoom
|
|
||||||
from houdini.data.mail import PenguinPostcard
|
|
||||||
|
|
||||||
from datetime import datetime, timedelta
|
|
||||||
|
|
||||||
import time
|
|
||||||
import random
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import operator
|
import operator
|
||||||
|
import random
|
||||||
|
import time
|
||||||
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
|
from houdini import handlers
|
||||||
|
from houdini.constants import ClientType, StatusField
|
||||||
|
from houdini.data.mail import PenguinPostcard
|
||||||
|
from houdini.data.pet import PenguinPuffle, PenguinPuffleCollection, PenguinPuffleItemCollection, PuffleCollection, \
|
||||||
|
PuffleItemCollection, PuffleTreasureFurniture, PuffleTreasureItem, PuffleTreasurePuffleItem
|
||||||
|
from houdini.data.room import PenguinBackyardRoom, PenguinIglooRoom
|
||||||
|
from houdini.handlers import Priority, XMLPacket, XTPacket
|
||||||
|
|
||||||
PuffleKillerInterval = 600
|
PuffleKillerInterval = 600
|
||||||
LegacyPuffleIds = [0, 1, 2, 3, 4, 5, 6, 7, 8]
|
LegacyPuffleIds = [0, 1, 2, 3, 4, 5, 6, 7, 8]
|
||||||
|
@ -1,16 +1,17 @@
|
|||||||
from houdini import handlers
|
import asyncio
|
||||||
from houdini.converters import SeparatorConverter
|
import random
|
||||||
from houdini.handlers import XTPacket, XMLPacket, Priority
|
import time
|
||||||
from houdini.data import db
|
from datetime import datetime, timedelta
|
||||||
from houdini.data.penguin import Penguin, PenguinMembership
|
|
||||||
from houdini.data.mail import PenguinPostcard
|
|
||||||
from houdini.constants import ClientType
|
|
||||||
|
|
||||||
from aiocache import cached
|
from aiocache import cached
|
||||||
from datetime import datetime, timedelta
|
|
||||||
import random
|
from houdini import handlers
|
||||||
import asyncio
|
from houdini.constants import ClientType
|
||||||
import time
|
from houdini.converters import SeparatorConverter
|
||||||
|
from houdini.data import db
|
||||||
|
from houdini.data.mail import PenguinPostcard
|
||||||
|
from houdini.data.penguin import Penguin, PenguinMembership
|
||||||
|
from houdini.handlers import Priority, XMLPacket, XTPacket
|
||||||
|
|
||||||
|
|
||||||
def get_player_string_key(_, p, player_id):
|
def get_player_string_key(_, p, player_id):
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
from houdini import handlers
|
import time
|
||||||
from houdini.handlers import XTPacket
|
|
||||||
from houdini.constants import ClientType
|
|
||||||
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
import ujson
|
import ujson
|
||||||
import time
|
|
||||||
|
|
||||||
|
from houdini import handlers
|
||||||
|
from houdini.constants import ClientType
|
||||||
|
from houdini.handlers import XTPacket
|
||||||
|
|
||||||
RainbowQuestRewards = [6158, 4809, 1560, 3159]
|
RainbowQuestRewards = [6158, 4809, 1560, 3159]
|
||||||
RainbowBonusReward = 5220
|
RainbowBonusReward = 5220
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
from houdini import handlers
|
|
||||||
from houdini.handlers import XTPacket
|
|
||||||
from houdini.data.penguin import Penguin
|
|
||||||
|
|
||||||
import random
|
import random
|
||||||
|
|
||||||
|
from houdini import handlers
|
||||||
|
from houdini.data.penguin import Penguin
|
||||||
|
from houdini.handlers import XTPacket
|
||||||
|
|
||||||
|
|
||||||
@handlers.handler(XTPacket('r', 'cdu'))
|
@handlers.handler(XTPacket('r', 'cdu'))
|
||||||
@handlers.cooldown(1)
|
@handlers.cooldown(1)
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
from houdini import handlers
|
from houdini import handlers
|
||||||
from houdini.handlers import XTPacket
|
|
||||||
|
|
||||||
from houdini.data.item import Item
|
from houdini.data.item import Item
|
||||||
|
from houdini.handlers import XTPacket
|
||||||
|
|
||||||
|
|
||||||
@handlers.handler(XTPacket('s', 'upc'))
|
@handlers.handler(XTPacket('s', 'upc'))
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
from houdini import handlers
|
|
||||||
from houdini.handlers import XMLPacket, XTPacket, Priority
|
|
||||||
from houdini.handlers.play.navigation import handle_join_server, handle_join_room
|
|
||||||
from houdini.data.stamp import Stamp, CoverStamp, CoverItem, PenguinStampCollection, StampCollection
|
|
||||||
from houdini.data.penguin import Penguin
|
|
||||||
|
|
||||||
from aiocache import cached
|
from aiocache import cached
|
||||||
|
|
||||||
|
from houdini import handlers
|
||||||
|
from houdini.data.penguin import Penguin
|
||||||
|
from houdini.data.stamp import CoverItem, CoverStamp, PenguinStampCollection, Stamp, StampCollection
|
||||||
|
from houdini.handlers import Priority, XMLPacket, XTPacket
|
||||||
|
from houdini.handlers.play.navigation import handle_join_room, handle_join_server
|
||||||
|
|
||||||
|
|
||||||
def get_book_cover_key(_, p, player_id):
|
def get_book_cover_key(_, p, player_id):
|
||||||
return f'book.{player_id}'
|
return f'book.{player_id}'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
from houdini import handlers
|
from houdini import handlers
|
||||||
from houdini.handlers import XTPacket
|
|
||||||
from houdini.constants import ClientType
|
from houdini.constants import ClientType
|
||||||
|
from houdini.handlers import XTPacket
|
||||||
|
|
||||||
|
|
||||||
@handlers.handler(XTPacket('t', 'at'))
|
@handlers.handler(XTPacket('t', 'at'))
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
from houdini import handlers
|
|
||||||
from houdini.handlers import XTPacket
|
|
||||||
from houdini.constants import ClientType
|
|
||||||
|
|
||||||
from houdini.data import db
|
|
||||||
from houdini.data.redemption import RedemptionCode, RedemptionAwardCard, RedemptionAwardFlooring, \
|
|
||||||
RedemptionAwardFurniture, RedemptionAwardIgloo, RedemptionAwardItem, RedemptionAwardLocation,\
|
|
||||||
RedemptionAwardPuffle, RedemptionAwardPuffleItem, PenguinRedemptionBook, PenguinRedemptionCode
|
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
from houdini import handlers
|
||||||
|
from houdini.constants import ClientType
|
||||||
|
from houdini.data import db
|
||||||
|
from houdini.data.redemption import PenguinRedemptionBook, PenguinRedemptionCode, RedemptionAwardCard, \
|
||||||
|
RedemptionAwardFlooring, RedemptionAwardFurniture, RedemptionAwardIgloo, RedemptionAwardItem, \
|
||||||
|
RedemptionAwardLocation, RedemptionAwardPuffle, RedemptionAwardPuffleItem, RedemptionCode
|
||||||
|
from houdini.handlers import XTPacket
|
||||||
|
|
||||||
|
|
||||||
@handlers.handler(XTPacket('rjs', ext='red'), pre_login=True, client=ClientType.Vanilla)
|
@handlers.handler(XTPacket('rjs', ext='red'), pre_login=True, client=ClientType.Vanilla)
|
||||||
@handlers.allow_once
|
@handlers.allow_once
|
||||||
|
@ -1,19 +1,17 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from houdini.spheniscidae import Spheniscidae
|
|
||||||
from houdini.penguin import Penguin
|
|
||||||
from houdini import PenguinStringCompiler
|
|
||||||
|
|
||||||
import logging
|
|
||||||
from logging.handlers import RotatingFileHandler
|
from logging.handlers import RotatingFileHandler
|
||||||
|
|
||||||
import aioredis
|
import aioredis
|
||||||
from aiocache import SimpleMemoryCache, caches
|
from aiocache import SimpleMemoryCache, caches
|
||||||
|
|
||||||
|
from houdini import PenguinStringCompiler
|
||||||
from houdini.data import db
|
from houdini.data import db
|
||||||
from houdini.data.permission import PermissionCollection
|
from houdini.data.permission import PermissionCollection
|
||||||
|
from houdini.penguin import Penguin
|
||||||
|
from houdini.spheniscidae import Spheniscidae
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import uvloop
|
import uvloop
|
||||||
@ -32,7 +30,6 @@ from houdini.handlers.play.player import server_heartbeat, server_egg_timer
|
|||||||
from houdini.handlers.play.pet import decrease_stats
|
from houdini.handlers.play.pet import decrease_stats
|
||||||
|
|
||||||
from houdini.handlers.play.music import SoundStudio
|
from houdini.handlers.play.music import SoundStudio
|
||||||
from houdini.handlers.games.dance import DanceFloor
|
|
||||||
|
|
||||||
|
|
||||||
class Houdini:
|
class Houdini:
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
from houdini.spheniscidae import Spheniscidae
|
|
||||||
from houdini.data import penguin
|
from houdini.data import penguin
|
||||||
from houdini.data.mail import PenguinPostcard
|
from houdini.data.mail import PenguinPostcard
|
||||||
from houdini.handlers.play.pet import get_my_player_walking_puffle
|
from houdini.handlers.play.pet import get_my_player_walking_puffle
|
||||||
|
from houdini.spheniscidae import Spheniscidae
|
||||||
|
|
||||||
|
|
||||||
class Penguin(Spheniscidae, penguin.Penguin):
|
class Penguin(Spheniscidae, penguin.Penguin):
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
from abc import ABC
|
|
||||||
from abc import abstractmethod
|
|
||||||
|
|
||||||
import inspect
|
import inspect
|
||||||
|
from abc import ABC, abstractmethod
|
||||||
|
|
||||||
from houdini import _AbstractManager, get_package_modules
|
from houdini import _AbstractManager, get_package_modules
|
||||||
|
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
from houdini.handlers import XMLPacket, XTPacket
|
from asyncio import CancelledError, IncompleteReadError
|
||||||
|
|
||||||
from asyncio import IncompleteReadError, CancelledError
|
|
||||||
|
|
||||||
import defusedxml.cElementTree as Et
|
|
||||||
from xml.etree.cElementTree import Element, SubElement, tostring
|
from xml.etree.cElementTree import Element, SubElement, tostring
|
||||||
|
|
||||||
|
import defusedxml.cElementTree as Et
|
||||||
|
|
||||||
from houdini.constants import ClientType
|
from houdini.constants import ClientType
|
||||||
from houdini.handlers import AuthorityError
|
from houdini.handlers import AuthorityError, XMLPacket, XTPacket
|
||||||
|
|
||||||
|
|
||||||
class Spheniscidae:
|
class Spheniscidae:
|
||||||
|
Loading…
Reference in New Issue
Block a user