3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +01:00

utils: return the ServiceBot instance in registerService

This commit is contained in:
James Lu 2016-05-14 14:23:52 -07:00
parent 6440922759
commit 8f14e02f10

View File

@ -286,3 +286,4 @@ def registerService(name, *args, **kwargs):
world.services[name] = sbot = ServiceBot(name, *args, **kwargs) world.services[name] = sbot = ServiceBot(name, *args, **kwargs)
sbot.spawn() sbot.spawn()
return sbot