Linux Mint and Budabot

Questions, comments, suggestions, and bug reports
Jabberwock
Member
Posts: 5
Joined: Fri Jul 15, 2016 7:43 pm
antispam: Rimor

Re: Linux Mint and Budabot

Postby Jabberwock » Sun Jul 17, 2016 8:28 am

Great, the php7.0-bcmath made the bot start kicking :-)
Lots of errors still, but I think next step is to try to figure out how to load the trickle script manually. Maybe the errors are cnnected....
Tyrence
Posts: 1908
Joined: Sat Jan 09, 2010 1:32 am

Re: Linux Mint and Budabot

Postby Tyrence » Sun Jul 17, 2016 5:14 pm

Glad you got the bot running.

For the trickle problem, edit the trickle.sql file and change the first line to:

Code: Select all

DROP TABLE IF EXISTS trickle;


then save the file and restart the bot. That should fix that problem.
"Those who expect to reap the blessings of freedom, must, like men, undergo the fatigues of supporting it." — Thomas Paine
"Nearly all men stand adversity, but if you want to test a man's character, give him power." — Abraham Lincoln
Budabot Releases and Downloads: https://github.com/Budabot/Budabot/releases
Jabberwock
Member
Posts: 5
Joined: Fri Jul 15, 2016 7:43 pm
antispam: Rimor

Re: Linux Mint and Budabot

Postby Jabberwock » Mon Jul 25, 2016 7:08 pm

Thank you. That worked perfectly :-)

There is an error while i start up the bot. I dont think it affects anything for me, and seems to be connected with the player lookup, so
i suspect it has something to do with the server merge, so some names that hasn't been used for a very long time is taken by other players... or something...
But... you might wanna know if it maybe helps you in some other problem hehe

I get a lot of these lines at startup of the bot, and the line number varies from 75 to 97

Code: Select all

Deprecated: Non-static method Budabot\Core\xml::spliceData() should not be called statically in /home/myname/Budabot/core/PLAYER_LOOKUP/GuildManager.class.php on line 93


After the many error lines, i get the "Finished with roster update" message.
Tyrence
Posts: 1908
Joined: Sat Jan 09, 2010 1:32 am

Re: Linux Mint and Budabot

Postby Tyrence » Mon Jul 25, 2016 8:40 pm

The fix for that is here: https://github.com/Budabot/Budabot/comm ... 44d3d210d4

I probably should have mentioned this before, but both this fix and the trickle fix have already but submitted to the Git repo as well as other fixes, but they were fixed after the latest release. You may prefer to use the development version of Budabot which has all the latest changes and fixes: https://github.com/Budabot/Budabot/archive/master.zip

The downside is that it may have other bugs (but at this stage it is unlikely). It also includes some extra commands that are mostly only useful for development of Budabot and probably not useful to you, but they could be.
"Those who expect to reap the blessings of freedom, must, like men, undergo the fatigues of supporting it." — Thomas Paine
"Nearly all men stand adversity, but if you want to test a man's character, give him power." — Abraham Lincoln
Budabot Releases and Downloads: https://github.com/Budabot/Budabot/releases
Jabberwock
Member
Posts: 5
Joined: Fri Jul 15, 2016 7:43 pm
antispam: Rimor

Re: Linux Mint and Budabot

Postby Jabberwock » Tue Jul 26, 2016 7:00 am

Brilliant :-)

So to summarize this as a hopefully complete guide:

Installation of Budabot with mysql and php7.0 on a clean install of Linux Mint 18 "Sarah"

Install from software manager or apt-get:
php7.0-cli
php7.0-mysql
php7.0-xml
php7.0-gmp
php7.0-bcmath


Set up mysql by using this guide:
viewtopic.php?f=5&t=850

Change the first line in modules/TRICKLE_MODULE/trickle.sql to:

Code: Select all

DROP TABLE IF EXISTS trickle;


Change the file core/xml.php like this:
https://github.com/Budabot/Budabot/comm ... 44d3d210d4

Go to the Budabot directory and do:

Code: Select all

chmod +x ./chatbot.sh


Start the bot with:

Code: Select all

./chatbot.sh

Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest