From 8b468496953ade037568ec8ea0c58162aed80984 Mon Sep 17 00:00:00 2001 From: Tim Windelschmidt Date: Fri, 13 Nov 2015 20:56:07 +0100 Subject: [PATCH] Found? --- plugins/Lampel/config.py | 11 ++++++++--- plugins/Lampel/plugin.py | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/plugins/Lampel/config.py b/plugins/Lampel/config.py index 3ad9668..45c9d46 100644 --- a/plugins/Lampel/config.py +++ b/plugins/Lampel/config.py @@ -1,6 +1,8 @@ ### -# Copyright (c) 2015, fionera +# Copyright (c) 2011, Fuck You # All rights reserved. +# +# ### import supybot.conf as conf @@ -16,5 +18,8 @@ def configure(advanced): Lampel = conf.registerPlugin('Lampel') - -# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: +# This is where your configuration variables (if any) should go. For example: +conf.registerGlobalValue(Lampel, 'host', + registry.String("lampel.raum.ctdo.de", """Host of Lampel""")) +conf.registerGlobalValue(Lampel, 'port', + registry.Integer(2701, """Port number of Lampel""")) diff --git a/plugins/Lampel/plugin.py b/plugins/Lampel/plugin.py index dd4a22c..21fa975 100644 --- a/plugins/Lampel/plugin.py +++ b/plugins/Lampel/plugin.py @@ -12,7 +12,7 @@ import supybot.plugins as plugins import supybot.ircutils as ircutils import supybot.callbacks as callbacks import supybot.ircmsgs as ircmsgs -import lampel +import ampel import random import time class Lampel(callbacks.Plugin):