Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Ts3Audiobot problem przy uruchomieniu


Szogi1910

Rekomendowane odpowiedzi

Opublikowano

Witam

Postanowiłem zmienić bota muzycznego z sinusbota na ts3audiobota po wykonaniu instalacji etc mam problem z jego uruchomieniem

 

16:12:38.0914| INFO [============ TS3AudioBot started =============]
16:12:38.1650| INFO [===      Edit by Wright for TSForum.PL     ===]
16:12:38.1766| INFO [=== Date/Time: Thursday, June 13, 2019 4:12:38 PM
16:12:38.2875| INFO [=== Version: 0.9.0/develop/b529f8eb
16:12:38.2904| INFO [=== Platform: Ubuntu 16.04 (64bit)
16:12:38.2904| INFO [=== Runtime: Mono (5.20.1.19 (tarball Thu Apr 11 09:09:21 UTC 2019))
16:12:38.2949| INFO [=== Opus: libopus 1.1.2 (x64)
16:12:38.2949| INFO [===      Edit by Wright for TSForum.PL     ===]
16:12:38.2949| INFO [==============================================]
16:12:38.2949| INFO [============ Initializing Modules ============]
16:12:38.5944| INFO No rights file found. Creating default.
16:12:38.5944|ERROR The rights file could not be parsed
16:12:38.6198|ERROR Could not read Permission file.
16:12:38.6953|FATAL Critical program failure!.
16:12:38.6992| INFO TS3AudioBot shutting down.
[ERROR] FATAL UNHANDLED EXCEPTION: System.UnauthorizedAccessException: Access to the path "/home/sinusbot/musicbot/history.db" is denied.
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <6649516e5b3542319fb262b421af0adb>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <6649516e5b3542319fb262b421af0adb>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions)
  at LiteDB.FileDiskService.CreateFileStream (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <763b2b7e3050499a81c0496b75ebcbdb>:0
  at LiteDB.FileDiskService.Initialize (LiteDB.Logger log, System.String password) [0x00081] in <763b2b7e3050499a81c0496b75ebcbdb>:0
  at LiteDB.LiteEngine..ctor (LiteDB.IDiskService disk, System.String password, System.Nullable`1[T] timeout, System.Int32 cacheSize, LiteDB.Logger log, System.Boolean utcDate) [0x00119] in <763b2b7e3050499a81c0496b75ebcbdb>:0
  at LiteDB.LiteDatabase+<>c__DisplayClass11_0.<.ctor>b__0 () [0x0006b] in <763b2b7e3050499a81c0496b75ebcbdb>:0
  at LiteDB.LazyLoad`1[T].get_Value () [0x00021] in <763b2b7e3050499a81c0496b75ebcbdb>:0
  at LiteDB.LiteCollection`1[T].EnsureIndex (System.String field, System.String expression, System.Boolean unique) [0x00013] in <763b2b7e3050499a81c0496b75ebcbdb>:0
  at LiteDB.LiteCollection`1[T].EnsureIndex[K] (System.Linq.Expressions.Expression`1[TDelegate] property, System.String expression, System.Boolean unique) [0x00026] in <763b2b7e3050499a81c0496b75ebcbdb>:0
  at LiteDB.LiteCollection`1[T].EnsureIndex[K] (System.Linq.Expressions.Expression`1[TDelegate] property, System.Boolean unique) [0x00000] in <763b2b7e3050499a81c0496b75ebcbdb>:0
  at TS3AudioBot.Sessions.TokenManager.Initialize () [0x00055] in <34477b893a8647568b7e6d08131fc43c>:0
  at TS3AudioBot.Core+<>c.<InitializeCore>b__34_5 (TS3AudioBot.Sessions.TokenManager x) [0x00000] in <34477b893a8647568b7e6d08131fc43c>:0
  at TS3AudioBot.Dependency.DependencyRealm+<>c__DisplayClass6_0`1[TMod].<RegisterModule>b__0 (System.Object x) [0x00000] in <34477b893a8647568b7e6d08131fc43c>:0
  at TS3AudioBot.Dependency.Module.SetInitalized () [0x0002c] in <34477b893a8647568b7e6d08131fc43c>:0
  at TS3AudioBot.Dependency.DependencyRealm.TryResolve (TS3AudioBot.Dependency.Module module, System.Boolean force) [0x00013] in <34477b893a8647568b7e6d08131fc43c>:0
  at TS3AudioBot.Dependency.DependencyRealm.DoQueueInitialize (System.Boolean force) [0x00027] in <34477b893a8647568b7e6d08131fc43c>:0
  at TS3AudioBot.Dependency.DependencyRealm.RegisterModule (System.Object module, System.Action`1[T] onInit) [0x00014] in <34477b893a8647568b7e6d08131fc43c>:0
  at TS3AudioBot.Dependency.DependencyRealm.RegisterModule[TMod] (TMod module, System.Action`1[T] onInit) [0x00025] in <34477b893a8647568b7e6d08131fc43c>:0
  at TS3AudioBot.Core.InitializeCore () [0x00406] in <34477b893a8647568b7e6d08131fc43c>:0
  at TS3AudioBot.Core.Main (System.String[] args) [0x0009c] in <34477b893a8647568b7e6d08131fc43c>:0
15:41:44.7681| INFO [============ TS3AudioBot started =============]
15:41:44.8396| INFO [=== Date/Time: Thursday, June 13, 2019 3:41:44 PM
15:41:44.8508| INFO [=== Version: 0.9.0/master/f7375ff9
15:41:44.8517| INFO [=== Platform: Ubuntu 16.04.6 LTS (Xenial Xerus) (64bit)
15:41:44.8523| INFO [=== Runtime: Mono (5.10.1.20 (tarball Thu Mar 29 10:48:35 UTC 2018))
15:41:44.8538| INFO [=== Opus: libopus 1.1.2 (x64)
15:41:44.8538| INFO [==============================================]
15:41:45.0837|FATAL Critical program failure!.
15:41:45.0916| INFO TS3AudioBot shutting down.
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Can't find a WebInterface path to host. Try specifying the path to host in the config
  at TS3AudioBot.Web.Interface.WebDisplay..ctor (TS3AudioBot.Config.ConfWebInterface webData) [0x0008a] in <53a822c8c242431092c9dbb2035b3b5d>:0
  at TS3AudioBot.Web.WebServer.InitializeSubcomponents () [0x00065] in <53a822c8c242431092c9dbb2035b3b5d>:0
  at TS3AudioBot.Web.WebServer.Initialize () [0x00016] in <53a822c8c242431092c9dbb2035b3b5d>:0
  at TS3AudioBot.Core+<>c.<Run>b__26_2 (TS3AudioBot.Web.WebServer x) [0x00000] in <53a822c8c242431092c9dbb2035b3b5d>:0
  at TS3AudioBot.Dependency.DependencyRealm+<>c__DisplayClass6_0`1[TMod].<RegisterModule>b__0 (System.Object x) [0x00000] in <53a822c8c242431092c9dbb2035b3b5d>:0
  at TS3AudioBot.Dependency.Module.SetInitalized () [0x0002c] in <53a822c8c242431092c9dbb2035b3b5d>:0
  at TS3AudioBot.Dependency.DependencyRealm.TryResolve (TS3AudioBot.Dependency.Module module, System.Boolean force) [0x00013] in <53a822c8c242431092c9dbb2035b3b5d>:0
  at TS3AudioBot.Dependency.DependencyRealm.DoQueueInitialize (System.Boolean force) [0x00027] in <53a822c8c242431092c9dbb2035b3b5d>:0
  at TS3AudioBot.Dependency.DependencyRealm.RegisterModule (System.Object module, System.Action`1[T] onInit) [0x00014] in <53a822c8c242431092c9dbb2035b3b5d>:0
  at TS3AudioBot.Dependency.DependencyRealm.RegisterModule[TMod] (TMod module, System.Action`1[T] onInit) [0x00025] in <53a822c8c242431092c9dbb2035b3b5d>:0
  at TS3AudioBot.Core.Run (System.Boolean interactive) [0x0011d] in <53a822c8c242431092c9dbb2035b3b5d>:0
  at TS3AudioBot.Core.Main (System.String[] args) [0x0009b] in <53a822c8c242431092c9dbb2035b3b5d>:0

 

 

Opublikowano

Zapewne zainstalowałeś jako root, a następnie uruchomiłeś jako użytkownik. Nadaj permisje do wszystkich plików w folderze dla użytkownika. Jeżeli problem dalej występuje to upewnij się, że wszystkie pliki zostały wypakowane poprawnie.

Opublikowano

Dokładnie tak było jak piszesz, mały szczegół a taki problem po zmianie uprawnień mam nadal problem z uruchomieniem go lecz teraz mam inne logi

 

18:41:26.6892| INFO [============ TS3AudioBot started =============]
18:41:26.7804| INFO [===      Edit by Wright for TSForum.PL     ===]
18:41:26.7922| INFO [=== Date/Time: Thursday, June 13, 2019 6:41:26 PM
18:41:26.9034| INFO [=== Version: 0.9.0/develop/b529f8eb
18:41:26.9034| INFO [=== Platform: Ubuntu 16.04 (64bit)
18:41:26.9034| INFO [=== Runtime: Mono (5.20.1.19 (tarball Thu Apr 11 09:09:21 UTC 2019))
18:41:26.9121| INFO [=== Opus: libopus 1.1.2 (x64)
18:41:26.9121| INFO [===      Edit by Wright for TSForum.PL     ===]
18:41:26.9121| INFO [==============================================]
18:41:26.9137| INFO [============ Initializing Modules ============]
18:41:27.5448| INFO [==================== Done ====================]
18:41:27.5539| INFO Bot connecting...
18:41:45.8782| INFO TS3AudioBot shutting down.
18:41:45.8821| INFO Bot disconnecting.
18:41:45.8962| WARN
18:41:45.9424| WARN Could not save avatar: Unknown Teamspeak Error. (Connection closed)
18:41:45.9634| WARN Bot disconnected. Reason: LeftServer
18:41:45.9723| WARN TS3AudioBot shutting down.

 

Opublikowano

Mógłbyś ponownie stworzyć bota z nową tożsamością oraz polecam zainstalować

https://github.com/Splamy/TS3AudioBot

Nie jakieś edycje od Wright'a.

Opublikowano

Z czym masz problem? Poniżej masz tutorial (na stronie)

 

(Poradnik do Ubuntu 18.04)

1.

sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update

2. Instalujesz potrzebne pakiety

apt-get install mono-complete libopus-dev ffmpeg

3. Pobierasz bota

wget https://splamy.de/api/nightly/ts3ab/master/download

4. Wypakowujesz

5. Uruchamiasz za pomocą

mono NAZWA_EXE

 

Opublikowano

Właśnie już ogarnąłem po cześći dzięki tobie, ciągle mi pobierało jakieś nieskompilowane wersję etc

 

Teraz mam dwa pytania jeszcze, jak mogę ograniczyć bota dla danych grupy, to wystarczy że dodam to w taki sposób i jeszcze jak zdefiniować głośność bota aby co piosenkę nie zmieniał on swojej głośności

 

# Playing rights
[[rule]]
    # Set Group Ids you want to allow here
    groupid = [ 1,2,3 ]
    # And/Or Client Uids here
    useruid = [ "" ]
    # Or remove groupid and useruid to allow for everyone

    "+" = [
        # Play controls
        "cmd.play",
        "cmd.pause",
        "cmd.stop",
        "cmd.seek",
        "cmd.volume",

        # Playlist management
        "cmd.list.*",
        "cmd.add",
        "cmd.clear",
        "cmd.previous",
        "cmd.next",
        "cmd.random.*",
        "cmd.repeat.*",

        ]

 

Opublikowano

1. Powinno to tak działać, ale osobiście testowałem z 1 rangą (nie więcej)

 

2. Przechodzisz do folderu z plikiem konfiguracyjnym bota (np. bots -> default -> bot.toml) i następnie zmieniasz:

[audio]
#When a new song starts the volume will be trimmed to between min and max.
#When the current volume already is between min and max nothing will happen.
#To completely or partially disable this feature, set min to 0 and/or max to 100.
volume = { default = 1.0, min = 1.0, max = 50.0 }

Wtedy nie będzie zmieniać głośności

  • Aive zmienił(a) tytuł na Ts3Audiobot problem przy uruchomieniu

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...