add ws stuff to example config

This commit is contained in:
slice 2018-06-19 17:52:25 -07:00
parent 7d64716487
commit d41641929c
No known key found for this signature in database
GPG Key ID: 1508C19D7436A26D
4 changed files with 8 additions and 6 deletions

View File

@ -6,6 +6,8 @@ class Config:
DEBUG = False
IS_SSL = False
WEBSERVER_URL = 'localhost:5000'
WS_HOST = 'localhost'
WS_PORT = 5001
POSTGRES = {}

View File

@ -6,8 +6,8 @@ import itsdangerous
import bcrypt
from quart import Blueprint, jsonify, request, current_app as app
from ..snowflake import get_snowflake
from ..errors import AuthError
from litecord.snowflake import get_snowflake
from litecord.errors import AuthError
bp = Blueprint('auth', __name__)

View File

@ -1,4 +1,4 @@
from ..errors import WebsocketClose
from litecord.errors import WebsocketClose
class UnknownOPCode(WebsocketClose):

View File

@ -4,13 +4,13 @@ import collections
import earl
from ..errors import WebsocketClose, AuthError
from ..auth import raw_token_check
from litecord.errors import WebsocketClose, AuthError
from litecord.auth import raw_token_check
from .errors import DecodeError, UnknownOPCode, \
InvalidShard, ShardingRequired
from .opcodes import OP
from .state import GatewayState, gen_session_id
from .state import GatewayState
log = logging.getLogger(__name__)