31 lines
820 B
Python
31 lines
820 B
Python
# coding=utf8
|
|
"""SpiceBotSERV
|
|
A Niche Wrapper around Sopel
|
|
"""
|
|
from __future__ import unicode_literals, absolute_import, division, print_function
|
|
|
|
import os
|
|
import pathlib
|
|
|
|
from sopel import plugin
|
|
|
|
from SpiceBotCore import SpiceBotCore_OBJ
|
|
print("Attributes: %s" % [x for x in dir(SpiceBotCore_OBJ) if not x.startswith("__")])
|
|
|
|
SCRIPT_DIR = pathlib.Path(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
|
|
def setup(bot):
|
|
bot.sbcore = SpiceBotCore_OBJ
|
|
print("Attributes: %s" % [x for x in dir(bot.sbcore) if not x.startswith("__")])
|
|
bot.sbcore.increment = 1
|
|
|
|
|
|
@plugin.nickname_command('test')
|
|
def test(bot, trigger):
|
|
bot.say("Testing the bot")
|
|
bot.say("Attributes: %s" % [x for x in dir(bot.sbcore) if not x.startswith("__")])
|
|
bot.say("Test #%s" % bot.sbcore.increment)
|
|
|
|
bot.sbcore.increment += 1
|