Fix circular import
The strange thing is that it was working on my test instance. Probably because Python 3.6 changed something regarding that.
This commit is contained in:
parent
a6e3c0a720
commit
06c60dfdc3
@ -46,7 +46,7 @@ import botconfig
|
|||||||
import src
|
import src
|
||||||
import src.settings as var
|
import src.settings as var
|
||||||
from src.utilities import *
|
from src.utilities import *
|
||||||
from src import db, events, channels, users, handler, hooks, logger, proxy, debuglog, errlog, plog
|
from src import db, events, channels, users, hooks, logger, proxy, debuglog, errlog, plog
|
||||||
from src.decorators import command, cmd, hook, handle_error, event_listener, COMMANDS
|
from src.decorators import command, cmd, hook, handle_error, event_listener, COMMANDS
|
||||||
from src.messages import messages
|
from src.messages import messages
|
||||||
from src.warnings import *
|
from src.warnings import *
|
||||||
@ -492,6 +492,8 @@ def pinger(cli, nick, chan, rest):
|
|||||||
|
|
||||||
@cmd("latency", pm=True)
|
@cmd("latency", pm=True)
|
||||||
def latency(cli, nick, chan, rest):
|
def latency(cli, nick, chan, rest):
|
||||||
|
from src import handler
|
||||||
|
|
||||||
handler.ping_server(cli)
|
handler.ping_server(cli)
|
||||||
|
|
||||||
@hook("pong", hookid=300)
|
@hook("pong", hookid=300)
|
||||||
|
Loading…
Reference in New Issue
Block a user