collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: .sql files... A question about some of the modules and getting them to run  (Read 11435 times)

0 Members and 1 Guest are viewing this topic.

Offline Xaun

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
This may seem like a silly question but here goes anyway. I am not really that good at code so some of this goes over my head. I am an artist not a programmer  :P

When trying to get some of these modules installed like the whois etc.. some of them include .sql files which seem to create databases etc.. my question is.. how do I get it to run and actually do the create databases threads etc.. I know very little about mysql and php so I got totally lost on this. I checked in the threads relating to the individual modules but didn't find any replies about this part of the install of them so instead of spamming 15 threads I figured I would create a new one.

Also I have as of yet been unable to get some of the plugins like !alert to show up in the bot !help or work..

Can anyone help a gal out?

Thanks,

Xaun

Offline Xaun

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
another thing is there a way to get the bot to always / auto turn !relay on?

Offline Xaun

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
oh yeah.. and I am using the newest bebot and mysql/php options available as listed here.

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Download a program called SQLYog to assist with sql dumps.
Eternalist
General of The Syndicate

Offline Xaun

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
great thanks!

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
another thing is there a way to get the bot to always / auto turn !relay on?

I made a setting for that using the new settings module. This will be put into trunk shortly.

Meanwhile if you grab the one that's in trunk now you can replace the line
Code: [Select]
$this -> relay = 0;

to read
Code: [Select]
$this -> relay = 0;

That should put relay into private group on by default when bot starts.


I hope that helps.

BlueEagle.


Edit: "Shortly" in this case is as soon as I get finished testing it completely. That is as soon as I get off this side track I've gotten in to.
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Naturalistic

  • Contributor
  • *******
  • Posts: 221
  • Karma: +0/-0
Blue: that code you posted is the same as what you're changing ;)
220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Shhh...

Don't say that out loud!!

Jees, now I've got to come up with something truely brilliant.  :P
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
another thing is there a way to get the bot to always / auto turn !relay on?

See the link I posted in the below topic for a switchable automatic relay for 0.2 (I'll try and remember to add this to A-Z).
http://bebot.link/index.php/topic,700.msg5215/topicseen.html#new

Let us know directly or ingame the particular plugin problems and we will do our best to help -simply "It doesn't work" doesn't help much ;p

-jj-

Offline Hectares

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
Sorry to bring this up again but I'm still having problems understanding the madules that also include mysql. I've been searching around but can't find anything that would help me so if anyone has a link that would guide me I'd be very appreciative. Otherwise I'll give a rundown of what I'm doing.

I have the guildbot up and running. I've gotten most of the regular modules running but I'm trying to install this

http://bebot.link/index.php?PHPSESSID=6fj487s289m6j59ktsj60odme6&/topic,580.0.html

I've added the colors.php, level.pvp and the level.sql all into the modules directory. I'm guessing that I have to import the level.sql into the database but I'm not sure how. I've downloaded that SQLYOG program but not really sure what to do with it. Any advice that would point me in the right direction would really be appreciated.

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
mysql -p -u <username> <database_name>

that should bring you to the mysql prompt if you substitute <username> with the username you've got on the database and substitude <database_name> with the name of the database.

there you type:

\. filename.sql

That will execute the commands in filename.sql and that should set up the table structure for you.

Now in 0.3 the distribution of .sql files should sease as the bot now has got a very good way of executing database commands and this creating database tables in the modules itself.

Hope that helps.
The only problem that can't be solved by adding another wrapper is having too many wrappers.

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 233
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal