mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
A huge bundle of fixes and improvements
This commit is contained in:
parent
f19794daf9
commit
922df91507
21 changed files with 76 additions and 38 deletions
|
@ -6,8 +6,8 @@ aiohttp>=3.5.4
|
|||
sqlalchemy>=1.3.2
|
||||
Markdown>=3.1
|
||||
dateparser>=0.7.1
|
||||
discord.py>=1.0.1
|
||||
youtube_dl>=2019.4.24
|
||||
discord.py>=1.2.2
|
||||
youtube_dl>=2019.6.8
|
||||
ffmpeg-python>=0.1.17
|
||||
Sphinx>=2.0.1
|
||||
sphinx_rtd_theme>=0.4.3
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from . import audio, bots, commands, database, network, utils, error, web
|
||||
|
||||
version = "5.0a22"
|
||||
version = "5.0a23"
|
||||
|
||||
__all__ = ["audio", "bots", "commands", "database", "network", "utils", "error", "web"]
|
||||
|
|
|
@ -39,7 +39,7 @@ class RoyalPCMFile(YtdlFile):
|
|||
ffmpeg.input(f"./{self.video_filename}") \
|
||||
.output(self.audio_filename, format="s16le", ac=2, ar="48000") \
|
||||
.overwrite_output() \
|
||||
.run(quiet=False)
|
||||
.run(quiet=True)
|
||||
except ffmpeg.Error as exc:
|
||||
log.error(f"FFmpeg error: {exc.stderr}")
|
||||
raise
|
||||
|
|
|
@ -67,10 +67,16 @@ class CvNH(NetworkHandler):
|
|||
# Voice
|
||||
if channel != 0:
|
||||
# Voice status
|
||||
if member.voice.self_mute:
|
||||
message += f"🔇 "
|
||||
if member.voice.afk:
|
||||
message += "💤 "
|
||||
elif member.voice.self_deaf or member.voice.deaf:
|
||||
message += "🔇 "
|
||||
elif member.voice.self_mute or member.voice.mute:
|
||||
message += "🔈 "
|
||||
elif member.voice.self_video:
|
||||
message += "📺 "
|
||||
else:
|
||||
message += f"🔊 "
|
||||
message += "🔊 "
|
||||
# Nickname
|
||||
if member.nick is not None:
|
||||
message += f"[i]{member.nick}[/i]"
|
||||
|
@ -99,6 +105,8 @@ class CvNH(NetworkHandler):
|
|||
message += f" | 🎧 {member.activity.name}"
|
||||
elif member.activity.type == discord.ActivityType.watching:
|
||||
message += f" | 📺 {member.activity.name}"
|
||||
else:
|
||||
message += f" | ❓ Unknown activity"
|
||||
message += "\n"
|
||||
message += "\n"
|
||||
return ResponseSuccess({"response": message})
|
||||
|
|
|
@ -17,33 +17,39 @@ class ErrorHandlerCommand(Command):
|
|||
if isinstance(exception, NoneFoundError):
|
||||
await call.reply(f"⚠️ L'elemento richiesto non è stato trovato.\n[p]{exception}[/p]")
|
||||
return
|
||||
if isinstance(exception, TooManyFoundError):
|
||||
elif isinstance(exception, TooManyFoundError):
|
||||
await call.reply(f"⚠️ La richiesta effettuata è ambigua, pertanto è stata annullata.\n[p]{exception}[/p]")
|
||||
return
|
||||
if isinstance(exception, UnregisteredError):
|
||||
elif isinstance(exception, UnregisteredError):
|
||||
await call.reply("⚠️ Devi essere registrato a Royalnet per usare questo comando.\nUsa il comando [c]sync[/c] per registrarti!")
|
||||
return
|
||||
if isinstance(exception, UnsupportedError):
|
||||
elif isinstance(exception, UnsupportedError):
|
||||
await call.reply(f"⚠️ Il comando richiesto non è disponibile tramite l'interfaccia [c]{call.interface_name}[/c].")
|
||||
return
|
||||
if isinstance(exception, InvalidInputError):
|
||||
elif isinstance(exception, InvalidInputError):
|
||||
command = call.kwargs["previous_command"]
|
||||
await call.reply(f"⚠️ Sintassi non valida.\nSintassi corretta: [c]{call.interface_prefix}{command.command_name} {command.command_syntax}[/c]")
|
||||
return
|
||||
if isinstance(exception, InvalidConfigError):
|
||||
elif isinstance(exception, InvalidConfigError):
|
||||
await call.reply(f"⚠️ Il bot non è stato configurato correttamente, quindi questo comando non può essere eseguito.\n[p]{exception}[/p]")
|
||||
return
|
||||
if isinstance(exception, RoyalnetRequestError):
|
||||
elif isinstance(exception, RoyalnetRequestError):
|
||||
await call.reply(f"⚠️ La richiesta a Royalnet ha restituito un errore:\n"
|
||||
f"[p]{exception.error.extra_info['type']}\n"
|
||||
f"{exception.error.extra_info['str']}[/p]")
|
||||
return
|
||||
if isinstance(exception, ExternalError):
|
||||
elif isinstance(exception, ExternalError):
|
||||
await call.reply(f"⚠️ Una risorsa esterna necessaria per l'esecuzione del comando non ha funzionato correttamente, quindi il comando è stato annullato.\n[p]{exception}[/p]")
|
||||
return
|
||||
if isinstance(exception, RoyalnetResponseError):
|
||||
elif isinstance(exception, RoyalnetResponseError):
|
||||
log.warning(f"Invalid response from Royalnet - {exception.__class__.__name__}: {exception}")
|
||||
await call.reply(f"❌ La risposta ricevuta da Royalnet non è valida: [p]{exception}[/p]")
|
||||
return
|
||||
log.error(f"Unhandled exception - {exception.__class__.__name__}: {exception}")
|
||||
await call.reply(f"❌ Eccezione non gestita durante l'esecuzione del comando:\n[b]{exception.__class__.__name__}[/b]\n[p]{exception}[/p]")
|
||||
elif isinstance(exception, CurrentlyDisabledError):
|
||||
await call.reply(f"⚠️ Il comando richiesto è temporaneamente disabilitato.\n[p]{exception}[/p]")
|
||||
return
|
||||
elif __debug__:
|
||||
raise
|
||||
else:
|
||||
log.error(f"Unhandled exception - {exception.__class__.__name__}: {exception}")
|
||||
await call.reply(f"❌ Eccezione non gestita durante l'esecuzione del comando:\n[b]{exception.__class__.__name__}[/b]\n[p]{exception}[/p]")
|
||||
|
|
|
@ -65,8 +65,8 @@ class PlayCommand(Command):
|
|||
@classmethod
|
||||
async def common(cls, call: Call):
|
||||
guild_name, url = call.args.match(r"(?:\[(.+)])?\s*<?(.+)>?")
|
||||
download_task = loop.create_task(call.net_request(Request("music_play", {"url": url, "guild_name": guild_name}), "discord"))
|
||||
notify_task = loop.create_task(notify_on_timeout(call, url, time=30, repeat=True))
|
||||
download_task = call.loop.create_task(call.net_request(Request("music_play", {"url": url, "guild_name": guild_name}), "discord"))
|
||||
notify_task = call.loop.create_task(notify_on_timeout(call, url, time=30, repeat=True))
|
||||
try:
|
||||
data: dict = await download_task
|
||||
except Exception as exc:
|
||||
|
|
|
@ -2,7 +2,7 @@ import typing
|
|||
import asyncio
|
||||
from ..utils import Command, Call, NetworkHandler
|
||||
from ..network import Request, ResponseSuccess
|
||||
from ..error import NoneFoundError, TooManyFoundError
|
||||
from ..error import NoneFoundError, TooManyFoundError, CurrentlyDisabledError
|
||||
from ..audio import Playlist, Pool
|
||||
if typing.TYPE_CHECKING:
|
||||
from ..bots import DiscordBot
|
||||
|
@ -30,7 +30,8 @@ class PlaymodeNH(NetworkHandler):
|
|||
if data["mode_name"] == "playlist":
|
||||
bot.music_data[guild] = Playlist()
|
||||
elif data["mode_name"] == "pool":
|
||||
bot.music_data[guild] = Pool()
|
||||
# bot.music_data[guild] = Pool()
|
||||
raise CurrentlyDisabledError("Bug: https://github.com/royal-games/royalnet/issues/61")
|
||||
else:
|
||||
raise ValueError("No such PlayMode")
|
||||
return ResponseSuccess()
|
||||
|
|
|
@ -39,4 +39,7 @@ class VideochannelCommand(Command):
|
|||
await call.reply("⚠️ Non sei connesso a nessun canale vocale!")
|
||||
return
|
||||
channel = voice.channel
|
||||
if author.is_on_mobile():
|
||||
await call.reply(f"📹 Per entrare in modalità video, clicca qui: <https://discordapp.com/channels/{channel.guild.id}/{channel.id}>\n[b]Attenzione: la modalità video non funziona su Discord per Android e iOS![/b]")
|
||||
return
|
||||
await call.reply(f"📹 Per entrare in modalità video, clicca qui: <https://discordapp.com/channels/{channel.guild.id}/{channel.id}>")
|
||||
|
|
|
@ -45,3 +45,7 @@ class ExternalError(Exception):
|
|||
|
||||
class FileTooBigError(Exception):
|
||||
"""The file to be downloaded would be too big to store; therefore, it has been skipped."""
|
||||
|
||||
|
||||
class CurrentlyDisabledError(Exception):
|
||||
"""This feature is temporarely disabled and is not available right now."""
|
||||
|
|
|
@ -41,9 +41,9 @@ class RoyalnetServer:
|
|||
self.required_secret: str = required_secret
|
||||
self.identified_clients: typing.List[ConnectedClient] = []
|
||||
if loop is None:
|
||||
self.loop = asyncio.get_event_loop()
|
||||
self._loop = asyncio.get_event_loop()
|
||||
else:
|
||||
self.loop = loop
|
||||
self._loop = loop
|
||||
|
||||
def find_client(self, *, nid: str = None, link_type: str = None) -> typing.List[ConnectedClient]:
|
||||
assert not (nid and link_type)
|
||||
|
|
|
@ -3,6 +3,7 @@ import asyncio
|
|||
import logging
|
||||
from royalnet.bots import DiscordBot, DiscordConfig, TelegramBot, TelegramConfig
|
||||
from royalnet.commands import *
|
||||
# noinspection PyUnresolvedReferences
|
||||
from royalnet.commands.debug_create import DebugCreateCommand
|
||||
from royalnet.commands.error_handler import ErrorHandlerCommand
|
||||
from royalnet.network import RoyalnetServer, RoyalnetConfig
|
||||
|
@ -15,13 +16,17 @@ log = logging.root
|
|||
stream_handler = logging.StreamHandler()
|
||||
stream_handler.formatter = logging.Formatter("{asctime}\t{name}\t{levelname}\t{message}", style="{")
|
||||
log.addHandler(stream_handler)
|
||||
log.setLevel(logging.WARNING)
|
||||
log.setLevel(logging.INFO)
|
||||
|
||||
commands = [PingCommand, ShipCommand, SmecdsCommand, ColorCommand, CiaoruoziCommand, DebugCreateCommand, SyncCommand,
|
||||
AuthorCommand, DiarioCommand, RageCommand, DateparserCommand, ReminderCommand, KvactiveCommand, KvCommand,
|
||||
KvrollCommand, VideoinfoCommand, SummonCommand, PlayCommand, SkipCommand, PlaymodeCommand,
|
||||
commands = [PingCommand, ShipCommand, SmecdsCommand, ColorCommand, CiaoruoziCommand, SyncCommand,
|
||||
DiarioCommand, RageCommand, ReminderCommand, KvactiveCommand, KvCommand,
|
||||
KvrollCommand, SummonCommand, PlayCommand, SkipCommand, PlaymodeCommand,
|
||||
VideochannelCommand, CvCommand, PauseCommand, QueueCommand]
|
||||
|
||||
# noinspection PyUnreachableCode
|
||||
if __debug__:
|
||||
commands = [DebugCreateCommand, VideoinfoCommand, DateparserCommand, AuthorCommand, *commands]
|
||||
|
||||
address, port = "127.0.0.1", 1234
|
||||
|
||||
print("Starting master...")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import os
|
||||
from .web import create_app
|
||||
from .web.royalprints import rp_home, rp_wikiview, rp_tglogin
|
||||
from .web.royalprints import rp_home, rp_wikiview, rp_tglogin, rp_docs
|
||||
|
||||
|
||||
class TestConfig:
|
||||
|
@ -8,7 +8,7 @@ class TestConfig:
|
|||
TG_AK = os.environ["TG_AK"]
|
||||
|
||||
|
||||
app = create_app(TestConfig, [rp_home, rp_wikiview, rp_tglogin])
|
||||
app = create_app(TestConfig, [rp_home, rp_wikiview, rp_tglogin, rp_docs])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
@ -3,5 +3,6 @@
|
|||
from .home import rp as rp_home
|
||||
from .wikiview import rp as rp_wikiview
|
||||
from .tglogin import rp as rp_tglogin
|
||||
from .docs import rp as rp_docs
|
||||
|
||||
__all__ = ["rp_home", "rp_wikiview", "rp_tglogin"]
|
||||
__all__ = ["rp_home", "rp_wikiview", "rp_tglogin", "rp_docs"]
|
||||
|
|
11
royalnet/web/royalprints/docs/__init__.py
Normal file
11
royalnet/web/royalprints/docs/__init__.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
"""Quick docs link :py:class:`royalnet.web.Royalprint`."""
|
||||
import flask as f
|
||||
from ... import Royalprint
|
||||
|
||||
|
||||
rp = Royalprint("docs", __name__, url_prefix="/docs")
|
||||
|
||||
|
||||
@rp.route("/")
|
||||
def home_index():
|
||||
return f.redirect("https://royal-games.github.io/royalnet/html/index.html")
|
|
@ -10,7 +10,7 @@
|
|||
<span class="left">Under construction</span>
|
||||
</div>
|
||||
<div class="bot">
|
||||
Non c'è ancora niente qui. O quasi. C'è solo la <a href="{{ url_for("wikiview.wikiview_index") }}">wiki</a> in sola lettura...
|
||||
Non c'è ancora niente qui. O quasi. C'è solo la <a href="{{ url_for("wikiview.wikiview_index") }}">wiki</a> in sola lettura e il <a href="{{ url_for("tglogin.tglogin_index") }}">login con Telegram</a>...
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -3,12 +3,14 @@ import flask as f
|
|||
import hashlib
|
||||
import hmac
|
||||
import datetime
|
||||
import os
|
||||
from ... import Royalprint
|
||||
from ....database.tables import Royal, Telegram
|
||||
|
||||
|
||||
rp = Royalprint("tglogin", __name__, url_prefix="/login/telegram", required_tables={Royal, Telegram},
|
||||
template_folder="templates")
|
||||
tmpl_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'templates')
|
||||
rp = Royalprint("tglogin", __name__, url_prefix="/tglogin", required_tables={Royal, Telegram},
|
||||
template_folder=tmpl_dir)
|
||||
|
||||
|
||||
@rp.route("/")
|
||||
|
|
|
@ -206,7 +206,6 @@ nav .nav-image {
|
|||
vertical-align: middle;
|
||||
}
|
||||
nav .nav-sitename {
|
||||
color: #ffffff;
|
||||
font-weight: bold;
|
||||
}
|
||||
nav .nav-login-unavailable {
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"sources":["ryg.less"],"names":[],"mappings":"AAiBA;EACI,aALS,SAAS,4BAKlB;EACA,yBAAA;EACA,cAAA;EACA,sBAAA;;AAGJ;EACI,cAAA;EACA,qBAAA;;AAEA,CAAC;EACG,cAAA;;AAGJ,CAAC;EACG,YAAA;;AAOA,CAFH,IAAI,UAEA;EACG,aAAa,qBAAb;EACA,iBAAA;EACA,SAAS,OAAT;EACA,iBAAA;;AAIJ,CAVH,IAAI,UAUA,sBAAsB;EACnB,aAAa,uBAAb;EACA,iBAAA;EACA,SAAS,OAAT;EACA,iBAAA;;AAIJ,CAlBH,IAAI,UAkBA,iCAAiC;AAAU,CAlB/C,IAAI,UAkB4C,0BAA0B;EACnE,aAAa,uBAAb;EACA,iBAAA;EACA,SAAS,OAAT;EACA,iBAAA;;AAIJ,CA1BH,IAAI,UA0BA,2BAA2B;AAAU,CA1BzC,IAAI,UA0BsC,kCAAkC;EACrE,aAAa,uBAAb;EACA,iBAAA;EACA,SAAS,OAAT;EACA,iBAAA;;AAIJ,CAlCH,IAAI,UAkCA,4BAA4B;AAAU,CAlC1C,IAAI,UAkCuC,iCAAiC;EACrE,aAAa,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||||
|
||||
.nav-sitename {
|
||||
color: @ec;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
</span>
|
||||
{% else %}
|
||||
<span class="nav-login">
|
||||
<a class="no-icon" href="/login/telegram">
|
||||
<a class="no-icon" href="{{ url_for("tglogin.tglogin_index") }}">
|
||||
Login
|
||||
<img class="nav-image faded" alt="" src="{{ url_for("static", filename="generic.png") }}">
|
||||
</a>
|
||||
|
|
Loading…
Reference in a new issue