Giter VIP home page Giter VIP logo

Comments (18)

Qunir avatar Qunir commented on August 29, 2024

PS. Po wyłączeniu funkcji welcomemessenger bot działa prawidłowo i go nie wyrzuca.

from ts3bot.

Majcon94 avatar Majcon94 commented on August 29, 2024

zaktualizowałeś bot.class.php ?

from ts3bot.

Qunir avatar Qunir commented on August 29, 2024

zaktualizowałeś bot.class.php ?

tak

from ts3bot.

Qunir avatar Qunir commented on August 29, 2024

@Majcon94 a jakiś zmian w bazie danych nie było? Bo ja zawsze ręcznie robiłem update. Te pliki w których miałem ustawiony inny czas to je podmieniłem i zmieniłem tylko czas. Configi robiłem ręcznie zmieniałem i jeszcze tłumaczenia bo mam też po swojemu ustawione. Ale zawsze przed startem brałem ./start.sh update i pokazywało że brak aktualizacji. Po włączeniu bot zawsze działał.

from ts3bot.

Majcon94 avatar Majcon94 commented on August 29, 2024

Porównaj strukturę z
https://github.com/Majcon94/TS3Bot/blob/master/ts3bot.sql

from ts3bot.

Qunir avatar Qunir commented on August 29, 2024

Troszeczkę się różni ale próbuje to poprawić i mam problem żeby dodać to poniżej ponieważ mam powielone te same cui.

ALTER TABLE `users`
  ADD UNIQUE KEY `index_cui` (`cui`);

W jaki sposób mogę szybko zadać pytanie żeby mi wyświetliło rekordy z tym samym cui żeby je pokasował jest na to jakiś łatwy sposób?

from ts3bot.

Majcon94 avatar Majcon94 commented on August 29, 2024

SELECT COUNT(cui), cui FROM users GROUP BY cui HAVING COUNT(cui)>1

from ts3bot.

Qunir avatar Qunir commented on August 29, 2024

A można jakoś w łatwy sposób żeby usunął dublikaty cui i żeby został ten z największym exp. Jeśli się nie da to żeby chociaż je skasować bo znalazło mi aż 385 a łącznie w bazie mam prawie 6tys rekordów. Kasowanie ich ręcznie zajmie zbyt dużo czasu.

from ts3bot.

Majcon94 avatar Majcon94 commented on August 29, 2024

Możesz spróbować takie zapytanie ale nie ręczę za nie xD
DELETE t1 FROM test AS t1, test AS t2 WHERE t1.cui = t2.cui AND t1.exp>t2.exp

from ts3bot.

Qunir avatar Qunir commented on August 29, 2024

@Majcon94
Bardzo fajnie to zadziałało skasowało tylko zdublikowane ale z Twoim t1.exp>t2.exp - zostawiało ten z mniejszym exp ale wystarczyło tylko zmienić znak wielkości:
DELETE t1 FROM users AS t1, users AS t2 WHERE t1.cui = t2.cui AND t1.exp<t2.exp

PS. Teraz zauważyłem że jeżeli rekordy są identyczne to nie kasuje ale po sprawdzeniu łatwiej jest ręcznie 2 rekordy usunąć niż 480 xD

from ts3bot.

Majcon94 avatar Majcon94 commented on August 29, 2024

Możesz zmienić exp na id to będzie usuwać z większym id

from ts3bot.

Qunir avatar Qunir commented on August 29, 2024

Możesz zmienić exp na id to będzie usuwać z większym id

Ale nie musiałem sprawdziłem ile się powtarza znalazło 2 więc je ręcznie usunąłem i dodałem ten index_cui do cui.
Włączyłem z powrotem welcomemessenger i czekam na rezultat czy się coś poprawi czy dalej będzie mi wywala tą 1 instalacje.
PS. Jak na razie po włączeniu wszystko działa ale zobaczymy co będzie później.

from ts3bot.

Majcon94 avatar Majcon94 commented on August 29, 2024

Wejdź z nowego konta którego nie ma w bazie bota i zobacz

from ts3bot.

Qunir avatar Qunir commented on August 29, 2024

Generalnie bot działa normalnie na włączonej funkcji welcomemessenger. Od wczoraj nie wywaliło 1 instalacji co wcześniej wywalało po kilku minutach lub godzinach. Wiadomości powitalne przychodzą normalnie lecz bot zwraca logi w php_error.log

[14-Jul-2020 20:38:12 Europe/Berlin] PHP Notice:  Undefined variable: topc in /home/bot/function/welcomemessege.php on line 142
[14-Jul-2020 20:38:12 Europe/Berlin] PHP Notice:  Undefined variable: connections in /home/bot/function/welcomemessege.php on line 143
[14-Jul-2020 20:38:12 Europe/Berlin] PHP Notice:  Undefined variable: topa in /home/bot/function/welcomemessege.php on line 144
[14-Jul-2020 20:38:12 Europe/Berlin] PHP Notice:  Undefined variable: time_activity in /home/bot/function/welcomemessege.php on line 145
[14-Jul-2020 20:38:12 Europe/Berlin] PHP Notice:  Undefined variable: toplc in /home/bot/function/welcomemessege.php on line 146
[14-Jul-2020 20:38:12 Europe/Berlin] PHP Notice:  Undefined variable: longest_connection in /home/bot/function/welcomemessege.php on line 147
[14-Jul-2020 20:38:12 Europe/Berlin] PHP Notice:  Undefined variable: topl in /home/bot/function/welcomemessege.php on line 148
[14-Jul-2020 20:38:12 Europe/Berlin] PHP Notice:  Undefined variable: lvl in /home/bot/function/welcomemessege.php on line 149
[14-Jul-2020 20:38:12 Europe/Berlin] PHP Notice:  Undefined variable: exp in /home/bot/function/welcomemessege.php on line 150

from ts3bot.

Qunir avatar Qunir commented on August 29, 2024

Wszystkie 3 boty działają prawidłowo. Ale bot dalej sypie podobne logi w php_error.log co wyżej:

[15-Jul-2020 19:46:40 Europe/Berlin] PHP Notice:  Undefined variable: topc in /home/bot/function/welcomemessege.php on line 142
[15-Jul-2020 19:46:40 Europe/Berlin] PHP Notice:  Undefined variable: connections in /home/bot/function/welcomemessege.php on line 143
[15-Jul-2020 19:46:40 Europe/Berlin] PHP Notice:  Undefined variable: topa in /home/bot/function/welcomemessege.php on line 144
[15-Jul-2020 19:46:40 Europe/Berlin] PHP Notice:  Undefined variable: time_activity in /home/bot/function/welcomemessege.php on line 145
[15-Jul-2020 19:46:40 Europe/Berlin] PHP Notice:  Undefined variable: toplc in /home/bot/function/welcomemessege.php on line 146
[15-Jul-2020 19:46:40 Europe/Berlin] PHP Notice:  Undefined variable: longest_connection in /home/bot/function/welcomemessege.php on line 147
[15-Jul-2020 19:46:40 Europe/Berlin] PHP Notice:  Undefined variable: topl in /home/bot/function/welcomemessege.php on line 148
[15-Jul-2020 19:46:40 Europe/Berlin] PHP Notice:  Undefined variable: lvl in /home/bot/function/welcomemessege.php on line 149
[15-Jul-2020 19:46:40 Europe/Berlin] PHP Notice:  Undefined variable: exp in /home/bot/function/welcomemessege.php on line 150
[15-Jul-2020 20:58:16 Europe/Berlin] PHP Notice:  Undefined variable: topc in /home/bot/function/welcomemessege.php on line 142
[15-Jul-2020 20:58:16 Europe/Berlin] PHP Notice:  Undefined variable: connections in /home/bot/function/welcomemessege.php on line 143
[15-Jul-2020 20:58:16 Europe/Berlin] PHP Notice:  Undefined variable: topa in /home/bot/function/welcomemessege.php on line 144
[15-Jul-2020 20:58:16 Europe/Berlin] PHP Notice:  Undefined variable: time_activity in /home/bot/function/welcomemessege.php on line 145
[15-Jul-2020 20:58:16 Europe/Berlin] PHP Notice:  Undefined variable: toplc in /home/bot/function/welcomemessege.php on line 146
[15-Jul-2020 20:58:16 Europe/Berlin] PHP Notice:  Undefined variable: longest_connection in /home/bot/function/welcomemessege.php on line 147
[15-Jul-2020 20:58:16 Europe/Berlin] PHP Notice:  Undefined variable: topl in /home/bot/function/welcomemessege.php on line 148
[15-Jul-2020 20:58:16 Europe/Berlin] PHP Notice:  Undefined variable: lvl in /home/bot/function/welcomemessege.php on line 149
[15-Jul-2020 20:58:16 Europe/Berlin] PHP Notice:  Undefined variable: exp in /home/bot/function/welcomemessege.php on line 150
[15-Jul-2020 20:58:47 Europe/Berlin] PHP Notice:  Undefined variable: topc in /home/bot/function/welcomemessege.php on line 142
[15-Jul-2020 20:58:47 Europe/Berlin] PHP Notice:  Undefined variable: connections in /home/bot/function/welcomemessege.php on line 143
[15-Jul-2020 20:58:47 Europe/Berlin] PHP Notice:  Undefined variable: topa in /home/bot/function/welcomemessege.php on line 144
[15-Jul-2020 20:58:47 Europe/Berlin] PHP Notice:  Undefined variable: time_activity in /home/bot/function/welcomemessege.php on line 145
[15-Jul-2020 20:58:47 Europe/Berlin] PHP Notice:  Undefined variable: toplc in /home/bot/function/welcomemessege.php on line 146
[15-Jul-2020 20:58:47 Europe/Berlin] PHP Notice:  Undefined variable: longest_connection in /home/bot/function/welcomemessege.php on line 147
[15-Jul-2020 20:58:47 Europe/Berlin] PHP Notice:  Undefined variable: topl in /home/bot/function/welcomemessege.php on line 148
[15-Jul-2020 20:58:47 Europe/Berlin] PHP Notice:  Undefined variable: lvl in /home/bot/function/welcomemessege.php on line 149
[15-Jul-2020 20:58:47 Europe/Berlin] PHP Notice:  Undefined variable: exp in /home/bot/function/welcomemessege.php on line 150

from ts3bot.

Qunir avatar Qunir commented on August 29, 2024

Hej przesyłam plik z logami. Jak będziesz mógł to zerknij.
Dzisiaj gdy instalacja pierwsza wyłączyła się bot zaczął dodawać osobom które mają rangi drugą rangę 1lvl:

<17:53:33> "TS3.Cs-Kurnik.pl [TOP]": Gratulacje właśnie awansowałeś na 1 lvl
<17:53:47> Partner z czatu rozłączył się poza zasięg wzroku.
<17:54:34> "TS3.Cs-Kurnik.pl [TOP]" ponownie dołączył(a) do czatu.
<17:54:34> "TS3.Cs-Kurnik.pl [TOP]": Gratulacje właśnie awansowałeś na 1 lvl
<17:55:34> "TS3.Cs-Kurnik.pl [TOP]": Gratulacje właśnie awansowałeś na 1 lvl
<17:56:34> "TS3.Cs-Kurnik.pl [TOP]": Gratulacje właśnie awansowałeś na 1 lvl
<17:57:34> "TS3.Cs-Kurnik.pl [TOP]": Gratulacje właśnie awansowałeś na 1 lvl
<17:58:34> "TS3.Cs-Kurnik.pl [TOP]": Gratulacje właśnie awansowałeś na 1 lvl
<17:59:34> "TS3.Cs-Kurnik.pl [TOP]": Gratulacje właśnie awansowałeś na 1 lvl
<18:00:34> "TS3.Cs-Kurnik.pl [TOP]": Gratulacje właśnie awansowałeś na 1 lvl
<18:01:34> "TS3.Cs-Kurnik.pl [TOP]": Gratulacje właśnie awansowałeś na 1 lvl
<18:03:47> Partner z czatu rozłączył się poza zasięg wzroku.

php_error - qunir.zip

from ts3bot.

Majcon94 avatar Majcon94 commented on August 29, 2024

Możesz sprawdzić teraz zobaczymy ;)

from ts3bot.

Qunir avatar Qunir commented on August 29, 2024

Dzięki bot z aktualizowany zamykam :)

from ts3bot.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.