Ts3audiobot: Multiple botnames

Created on 30 Jul 2019  路  3Comments  路  Source: Splamy/TS3AudioBot

Is your feature request related to a problem? Please describe.
Is it possible to set for each bot a different bot name? It would make sense if I麓ve different bots on the same server with different name like Techno-Music-Bot and RNB-Music-Bot...

Most helpful comment

Yes. If you want a single instance of ts3audiobot with multiple bots, (for example "Galactic" and "Pevo") do such way:

  1. at ts3audiobot.toml
    "Pevo" = { run = true }
    "Galactic" = { run = true }
  2. make directories bots/Pevo and bots/Galactic
  3. create file bot.toml under booth directories with:
    run = true
    [connect]
    name = "Here put bot name"
    with gave you definitions of booth bots. Thats all :-)

Additionally, if you want to give different permissions for different bots, add under rights.toml:

[[rule]]
    bot = [ "Bot_A" ]

    [[rule.rule]]
        groupid = [ 178 ]
        useruid = [ ]
        "+" = [
            "cmd.play",
            "cmd.pause",
            "cmd.stop",
            "cmd.seek",
            "cmd.volume",
            "cmd.list.*",
            "cmd.add",
            "cmd.clear",
            "cmd.previous",
            "cmd.next",
            "cmd.random.*",
            "cmd.repeat.*",
            "cmd.history.add",
            "cmd.history.from",
            "cmd.history.id",
            "cmd.history.last",
            "cmd.history.play",
            "cmd.history.till",
            "cmd.history.title",
        ]
        "-" = [ "cmd.list.save" ]

Voila :-)

All 3 comments

Yes. If you want a single instance of ts3audiobot with multiple bots, (for example "Galactic" and "Pevo") do such way:

  1. at ts3audiobot.toml
    "Pevo" = { run = true }
    "Galactic" = { run = true }
  2. make directories bots/Pevo and bots/Galactic
  3. create file bot.toml under booth directories with:
    run = true
    [connect]
    name = "Here put bot name"
    with gave you definitions of booth bots. Thats all :-)

Additionally, if you want to give different permissions for different bots, add under rights.toml:

[[rule]]
    bot = [ "Bot_A" ]

    [[rule.rule]]
        groupid = [ 178 ]
        useruid = [ ]
        "+" = [
            "cmd.play",
            "cmd.pause",
            "cmd.stop",
            "cmd.seek",
            "cmd.volume",
            "cmd.list.*",
            "cmd.add",
            "cmd.clear",
            "cmd.previous",
            "cmd.next",
            "cmd.random.*",
            "cmd.repeat.*",
            "cmd.history.add",
            "cmd.history.from",
            "cmd.history.id",
            "cmd.history.last",
            "cmd.history.play",
            "cmd.history.till",
            "cmd.history.title",
        ]
        "-" = [ "cmd.list.save" ]

Voila :-)

I wil check that and reopen the issue if I have some questions.

Except Point 1. which doesnt exists anymore (replaced by the run in 3.) seems fine.

Also some notes for some understanding:
Each value in the ts3audiobot.toml which is in a [bot.*] category can be individually overridden in a bot.toml config (The bot. prefix is just removed).
So for eg. in the ts3audiobot.toml

[bot.connect]
address = "default.com"

you can override it in the Bots/<botname>/bot.toml with

[connect]
address = "cooldomain.xyz"

Same with the commands
!settings set x y -> <current bot>/bot.toml
!settings bot set <name> x y -> <name>/bot.toml
!settings global set x y -> ts3audiobot.toml

I can see why some quirks about the config might be a bit difficult to understand, and config related questions like this have been asked a few times already in the past, so I will make a wiki entry which explains everything in detail; in about two weeks when I had my last exam.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Najsr picture Najsr  路  3Comments

iiAlphaWolf01 picture iiAlphaWolf01  路  4Comments

CookieCr2nk picture CookieCr2nk  路  4Comments

Adminio1 picture Adminio1  路  4Comments

TykooHagen picture TykooHagen  路  4Comments