Merge pull request #23 from deathbybandaid/development

Development
This commit is contained in:
Deathbybandaid 2019-05-05 11:52:47 -04:00 committed by GitHub
commit 1e538cc6da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 15 additions and 13 deletions

View File

@ -6,13 +6,7 @@ SpiceBot aims to run SpiceBot as an IRC service
Use at your own risk. Problems are not my fault™. Use at your own risk. Problems are not my fault™.
# Installation # Installation
This install assumes you know that you need sopel installed, depending on how bleeding edge you want sopel to be, This install assumes you want to run on Sopel master
````
pip3 install sopel>=6.0,<7
OR
pip3 install git+https://github.com/sopel-irc/sopel@master
````
```` ````
git clone https://github.com/SpiceBot/SpiceBot.git git clone https://github.com/SpiceBot/SpiceBot.git

View File

@ -1,3 +1,4 @@
spicemanip>=0.1.6 spicemanip>=0.1.6
gitpython gitpython
fake-useragent fake-useragent
git+https://github.com/sopel-irc/sopel@master

View File

@ -47,6 +47,9 @@ def join_log_channel(bot, trigger):
if channel not in bot.channels.keys() and bot.config.SpiceBot_Channels.operadmin: if channel not in bot.channels.keys() and bot.config.SpiceBot_Channels.operadmin:
bot.write(('SAJOIN', bot.nick, channel)) bot.write(('SAJOIN', bot.nick, channel))
if 'SpiceBot_Logs_queue' not in bot.memory:
bot.memory['SpiceBot_Logs_queue'] = []
while True: while True:
if len(bot.memory['SpiceBot_Logs_queue']): if len(bot.memory['SpiceBot_Logs_queue']):
bot.say(str(bot.memory['SpiceBot_Logs_queue'][0]), channel) bot.say(str(bot.memory['SpiceBot_Logs_queue'][0]), channel)

View File

@ -4,9 +4,16 @@ from __future__ import unicode_literals, absolute_import, print_function, divisi
# sopel imports # sopel imports
import sopel.module import sopel.module
from sopel.config.types import StaticSection, ValidatedAttribute
from sopel_modules.SpiceBot_SBTools import service_manip, bot_logging, spicebot_reload from sopel_modules.SpiceBot_SBTools import bot_logging, spicebot_reload
def configure(config):
pass
def setup(bot):
pass
def shutdown(bot): def shutdown(bot):

View File

@ -253,8 +253,6 @@ def channel_list_current(bot):
def spicebot_reload(bot, log_from='service_manip', quitmessage='Recieved QUIT'): def spicebot_reload(bot, log_from='service_manip', quitmessage='Recieved QUIT'):
# service_manip(bot, bot.nick, 'restart', log_from) # service_manip(bot, bot.nick, 'restart', log_from)
# bot.reload_plugins()
# bot.write(('NOTICE', bot.nick), '001 Foo :Hello')
bot.restart(quitmessage) bot.restart(quitmessage)

View File

@ -7,11 +7,10 @@ import sopel.module
from sopel.config.types import StaticSection, ValidatedAttribute from sopel.config.types import StaticSection, ValidatedAttribute
import os import os
import pip
import spicemanip import spicemanip
from sopel_modules.SpiceBot_SBTools import service_manip, sopel_triggerargs, command_permissions_check, bot_logging, spicebot_reload from sopel_modules.SpiceBot_SBTools import sopel_triggerargs, command_permissions_check, bot_logging, spicebot_reload
class SpiceBot_Update_MainSection(StaticSection): class SpiceBot_Update_MainSection(StaticSection):