: : __ __ __ : ___ _______ _/ /_____ ____ / / ___ _ / /_____ : / _ \/ __/ _ `/ '_/ _ `(_-</ _ \/ _ `/ / '_/ -_) : / .__/_/ \_,_/_/\_\\\\_,_/___/_//_/\_,_/ /_/\_\\\\__/ : /_/ : : You are in the prakasha interactive Python shell. : Type 'dir()' to see the objects in the current namespace. : : Enjoy! : """ # IRC irc = Config() irc.servicename = "IRC Client" irc.nick = "prakasha-bot" irc.server = "irc.freenode.net" irc.port = 6667 irc.serverPassword = None irc.sslEnabled = False irc.lineRate = 1 # Listener listener = Config() listener.servicename = "Message Service" listener.host = "127.0.0.1" listener.port = 6666 listener.password = "******"
from carapace.sdk import interfaces from peloid import meta moduleProvides(interfaces.IConfig) # Main main.config.datadir = os.path.expanduser("~/.%s" % meta.library_name) main.config.localfile = "config.ini" main.config.installedfile = os.path.join( main.config.datadir, main.config.localfile) # Database db = Config() db.name = "peloid" db.usercollection = "user-data" db.gamecollection = "game-data" # SSH Server for game ssh.servicename = meta.description ssh.port = 4222 ssh.keydir = os.path.join(main.config.datadir, "ssh") ssh.userdirtemplate = os.path.join(main.config.datadir, "users", "{{USER}}") ssh.userauthkeys = os.path.join(ssh.userdirtemplate, "authorized_keys") ssh.welcome = "Hello, {{NAME}}! You have entered a PeloidMUD Server." ssh.banner = """: : Welcome to : ____ ___ __ __ __ ____ :/\ _`\ /\_ \ __ /\ \ /'\_/`\/\ \/\ \/\ _`\\
from zope.interface import moduleProvides from carapace.config import Config from carapace.sdk import interfaces from hydeyhole.config import HydeyHoleConfigurator, main, ssh from hyasynth import meta moduleProvides(interfaces.IConfig) # SuperCollider external settings scext = Config() scext.host = "127.0.0.1" scext.port = 57110 scext.servicename = "External SC Process" # SuperCollider internal settings scint = Config() # XXX add the following to the configuration setup below scint.binary = "/usr/local/bin/scsynth" scint.defaultboot = False scint.host = "127.0.0.1" scint.port = 57111 scint.spawnport = 57112 scint.servicename = "Internal SC Process" # SuperCollider in-memory settings; these are not saved in a configuration file.
from ConfigParser import NoSectionError, NoOptionError import os from zope.interface import moduleProvides from carapace.config import Config from carapace.sdk import interfaces from hydeyhole.config import HydeyHoleConfigurator, main, ssh from hyasynth import meta moduleProvides(interfaces.IConfig) # SuperCollider external settings scext = Config() scext.host = "127.0.0.1" scext.port = 57110 scext.servicename = "External SC Process" # SuperCollider internal settings scint = Config() # XXX add the following to the configuration setup below scint.binary = "/usr/local/bin/scsynth" scint.defaultboot = False scint.host = "127.0.0.1" scint.port = 57111 scint.spawnport = 57112 scint.servicename = "Internal SC Process" # SuperCollider in-memory settings; these are not saved in a configuration file.
ssh.port = 4222 ssh.keydir = os.path.join(main.config.userdir, "ssh") ssh.localdir = "~/.ssh" ssh.banner = """: : Welcome to {{GAME_BANNER}} : : : You have logged into a Myriad Worlds Server. : {{HELP}} : : Enjoy! : """ game = Config() game.name = "The House II" game.storydir = os.path.abspath("examples/house-adventure-2") game.storyfile = os.path.abspath( os.path.join(game.storydir, "story.yaml")) game.bannerfile = os.path.abspath( os.path.join(game.storydir, "banner.asc")) game.type = const.LOCAL game.helpprompt = "Type 'help' at any time to view a list of commands." game.banner = "" class MyriadConfigurator(Configurator): def __init__(self, main, ssh, game): super(MyriadConfigurator, self).__init__(main, ssh)