Merge branch 'master' of khuxkm/babili-bot into master

This commit is contained in:
aewens 2018-11-26 11:29:48 -05:00 committed by Gitea
commit f32dce7faf
1 changed files with 6 additions and 3 deletions

View File

@ -8,9 +8,12 @@ from coroutines.rss import RSS
# def test(bot):
# print("Testing {}".format(bot.botnick))
def use(cls):
return lambda state: cls(state).start()
coroutines = [
{
"worker": lambda state: BBJ(state).start(),
"worker": use(BBJ),
"interval": 5,
"state": {
"alias": "bbj",
@ -19,7 +22,7 @@ coroutines = [
}
},
{
"worker": lambda state: RSS(state).start(),
"worker": use(RSS),
"interval": 6,
"state": {
"alias": "title",
@ -29,7 +32,7 @@ coroutines = [
}
},
{
"worker": lambda state: RSS(state).start(),
"worker": use(RSS),
"interval": 8,
"state": {
"alias": "links-comments",