Fix peertube init when no config set

This commit is contained in:
Ville Ranki 2021-04-11 23:11:07 +03:00
parent eff9c4153c
commit 5ee81f4f0f
1 changed files with 4 additions and 2 deletions

View File

@ -21,11 +21,13 @@ class PeerTubeClient:
return data
class MatrixModule(BotModule):
def __init__(self, name):
super().__init__(name)
self.instance_url = 'https://sepiasearch.org/'
def matrix_start(self, bot):
super().matrix_start(bot)
self.add_module_aliases(bot, ['ptall'])
if not self.instance_url:
instance_url = 'https://sepiasearch.org/'
async def matrix_message(self, bot, room, event):
args = event.body.split()