empus / armour

Armour -- an advanced eggdrop channel protection script for IRC
12 stars 11 forks source link

Error loading bot.conf #107

Closed charls-a closed 3 years ago

charls-a commented 3 years ago

[@] Armour: loading ./armour/armour-3.5.1.tcl ... [@] Armour: loaded script configuration. [@] Armour: eggdrop binds restructured. [@] Armour: loaded command binds. [@] unable to connect to sqlite database. error: unable to open database file [@] Armour: loading user database... [@] Armour v3.5.1 Loaded (empus@undernet.org) Creating channel file Couldn't create channel file: db/bot.chan. Dropping ERROR writing channel file.

rveyn commented 3 years ago

That's not a issue.

You need to create the folder db/ in your eggdrop install dir, per example: mkdir ~/eggdrop/db

empus commented 3 years ago

Best to get the eggdrop working first before you load Armour. You also have a sqlite connection issue there.

charls-a commented 3 years ago

Ok, eggdrop is working fine, i created folders as rveyn commented, but now i have this issue:

sqlite3 bot-userdb.db SQLite version 3.11.0 2016-02-15 17:29:24 Enter ".help" for usage hints. sqlite> INSERT INTO users (user,xuser,level,pass) VALUES('myuser','myXusername',500,'mypassword'); Error: no such table: users sqlite>

rveyn commented 3 years ago

First of all, set your console to +d (debug mode) and READ All message after a .rehash... as Empus said, your sqlite has an issue.

[@] unable to connect to sqlite database. error: unable to open database file

so probably you set a wrong path or anything. but important is to set +d and read debug. and take the time to read armour.conf.

after the first start with a good armour.conf setting, the bot will created your .sql file, so you'll be able to add yourself into it.

charls-a commented 3 years ago

Ok, console +d set, and rehashing...

.rehash [02:13:41] tcl: builtin dcc call: *dcc:rehash charls_a 7 [02:13:41] #charls_a# rehash Rehashing. [02:13:41] Writing user file... [02:13:41] Writing channel file... [02:13:41] Rehashing ... [02:13:41] Writing channel file... [02:13:41] Listening for telnet connections on 0.0.0.0:6826 (all). [02:13:41] Loading dccwhois.tcl... [02:13:41] Loaded dccwhois.tcl [02:13:41] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ). [02:13:41] use '.help userinfo' for commands. [02:13:41] [@] Armour: loading ./armour/armour-3.5.1.tcl ... [02:13:41] [@] Armour: loaded script configuration. [02:13:41] [@] Armour: eggdrop binds restructured. [02:13:41] [@] Armour: loaded command binds. [02:13:41] [@] Armour: loading user database... [02:13:41] userdb:db:load: started [02:13:41] userdb:db:load: loaded 0 users into the userlist [02:13:41] userdb:killtimers: killed 0 timers and 0 utimers [02:13:41] [@] Armour: loaded user database. [02:13:41] [@] Armour: loaded CIDR procedures. [02:13:41] [@] Armour: loaded geolocation tools. [02:13:41] [@] Armour: loaded asynchronous port scanner. [02:13:41] [@] Armour: loaded thommey commandline port scanner. [02:13:41] [@] Armour: loaded nmap scanner. [02:13:41] [@] Armour: loaded gnuworld (mod.cservice) authentication. [02:13:41] [@] Armour: loaded adaptive regex pattern builder. [02:13:41] [@] Armour: loaded remote dnsbl & portscan procedures. [02:13:41] [@] Armour: loaded user commands [02:13:41] [@] Armour: loaded raw functions. [02:13:41] [@] Armour: loaded scanner. [02:13:41] [@] Armour: loaded floodnet detection. [02:13:41] [@] Armour: loaded database functions. [02:13:41] [@] Armour: loaded asynchronous dns resolver. [02:13:41] [@] Armour: loaded support functions. [02:13:41] arm:db:load: loaded 0 whitelist and 0 blacklist entries to memory [02:13:41] arm:killtimers: killing utimer: 4 arm:stackvoice timer33 1 [02:13:41] arm:killtimers: killing timer: 8 userdb:db:write timer2 1 [02:13:41] arm:killtimers: killing timer: 8 arm:db:write timer1 1 [02:13:41] arm:killtimers: killed 1 utimers and 2 timers [02:13:41] arm:killtimers: killed 0 utimers and 0 timers [02:13:41] [@] Armour: initialised [02:13:41] [@] Armour loaded v3.5.1 loaded (empus@undernet.org) [02:13:41] [@] Armour v3.5.1 Loaded (empus@undernet.org) [02:13:41] Writing channel file... [02:13:41] Userfile loaded, unpacking...