mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 11:34:18 +00:00
Clean up serfs code
This commit is contained in:
parent
50f2f5b731
commit
b8e52bd2b9
4 changed files with 6 additions and 31 deletions
|
@ -8,23 +8,9 @@ from royalnet.utils import asyncify
|
|||
from royalnet.serf import Serf
|
||||
from .escape import escape
|
||||
from .voiceplayer import VoicePlayer
|
||||
import discord
|
||||
|
||||
|
||||
try:
|
||||
import discord
|
||||
except ImportError:
|
||||
discord = None
|
||||
|
||||
try:
|
||||
from sqlalchemy.orm.session import Session
|
||||
except ImportError:
|
||||
Session = None
|
||||
|
||||
try:
|
||||
from royalnet.herald import Config as HeraldConfig
|
||||
except ImportError:
|
||||
HeraldConfig = None
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
|
|
@ -7,13 +7,7 @@ import royalnet.commands as rc
|
|||
import royalnet.utils as ru
|
||||
from ..serf import Serf
|
||||
from .escape import escape
|
||||
|
||||
|
||||
try:
|
||||
import nio
|
||||
except ImportError:
|
||||
nio = None
|
||||
|
||||
import nio
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -9,14 +9,9 @@ import royalnet.backpack as rb
|
|||
from .escape import escape
|
||||
from ..serf import Serf
|
||||
|
||||
try:
|
||||
import telegram
|
||||
import urllib3
|
||||
from telegram.utils.request import Request as TRequest
|
||||
except ImportError:
|
||||
telegram = None
|
||||
urllib3 = None
|
||||
TRequest = None
|
||||
import telegram
|
||||
import urllib3
|
||||
from telegram.utils.request import Request as TRequest
|
||||
|
||||
try:
|
||||
from sqlalchemy.orm.session import Session
|
||||
|
|
|
@ -1 +1 @@
|
|||
semantic = "5.8.0"
|
||||
semantic = "5.8.1"
|
||||
|
|
Loading…
Reference in a new issue