Added working help invoker, changed config structure

This commit is contained in:
Ev-1 committed 2020-08-27 12:48:01 +02:00
1 parent 3bc611e81e
commit 1336a3ed4f
2 files changed
+12 -13

No files matched your search

+5 -3
View File
@@ -9,7 +9,8 @@ import codecs
import yaml
from .utils.mixplayer import MixPlayer
from cogs.helpformatter import commandhelper
from cogs.utils.paginator import Scroller
class NodeManager(commands.Cog):
def __init__(self, bot):
@@ -100,9 +101,10 @@ class NodeManager(commands.Cog):
@commands.group(name='node', hidden=True)
@commands.is_owner()
async def _node(self, ctx):
# TODO: @Even help
if ctx.invoked_subcommand is None:
await ctx.invoke(self.bot.get_command('help'), ctx.command.qualified_name)
paginator = commandhelper(ctx, ctx.command, ctx.invoker, include_subcmd=True)
scroller = Scroller(ctx, paginator)
await scroller.start_scrolling()
@_node.command(name='reload_file')
@commands.is_owner()
+7 -10
View File
@@ -19,20 +19,17 @@ default server settings:
dynamic max duration: Yes
lavalink nodes:
main: # The preferred lavalink node for your music bot
host: localhost
- host: localhost
port: 2333
password: youshallnotpass
region: eu
name: default-node
name: main
# Backup nodes for your music bot
backup:
- host: localhost
port: 2333
password: youshallnotpass
region: eu
name: backup-1
- host: localhost
port: 2333
password: youshallnotpass
region: eu
name: backup-1
APIkeys:
genius: