General > General discussion

Sharing a single database using 2 guild bots

(1/1)

RaZeR:
Does anyone foresee any problems in running 2 guild bots off the same database. My guild is in the process of moving to a different server, and I will be running the 2 guild bots on seperate accounts, from separate directories (so they have a different configuration file for the different logins) but using the same database details.

Both guild bots will have the same character name, and the idea is to continue to support players playing on the previous server during the transition.

I don't wish to start-over, or discontinue the old guild bot for quite some time. I've already tested that the guild bot works fine using existing settings on the new server, I just have not tested running 2 at the same time.

BTW: while testing the above I discovered if you have the same character name for your guild bot on a different server but the SAME account, it uses the new character instead of the old one. I tried patching in a "&& dimension=2" to use the old one but ran into problems further in the code.

Slacklin:
You will have to set a prefix for one or both of the bots. In the MySQL.conf file find this line    // $table_prefix = ""; and remove the slashes then indicate what prefix you want to use (for example ucom_) that way you can distinguish which tables belong to what bot.

Navigation

[0] Message Index

Go to full version