upd
This commit is contained in:
parent
ad7c28af97
commit
512f82d643
@ -13,5 +13,10 @@ database = chirpnest
|
||||
[rabbit]
|
||||
user = chirpnest
|
||||
password = chirpnest
|
||||
address = localhost:5672
|
||||
queue = chirpnest
|
||||
host = localhost:5672
|
||||
queue = chirpnest
|
||||
|
||||
[bot]
|
||||
admin_id = 0
|
||||
guildname = Guild
|
||||
guild = GLD
|
5
main.go
5
main.go
@ -30,6 +30,11 @@ type Config struct {
|
||||
Host string
|
||||
Queue string
|
||||
}
|
||||
Bot struct {
|
||||
Admin_id uint64
|
||||
Guidname string
|
||||
Guild string
|
||||
}
|
||||
}
|
||||
|
||||
var (
|
||||
|
3
sql.go
3
sql.go
@ -57,6 +57,9 @@ func initDB() {
|
||||
user_id VARCHAR(32) NOT NULL,
|
||||
name VARCHAR(80) NOT NULL,
|
||||
guild_id SMALLINT(5),
|
||||
last_msg TIMESTAMP,
|
||||
busy_until TIMESTAMP,
|
||||
role ENUM('commander', 'bartebder', 'squire', 'none'),
|
||||
PRIMARY KEY (id)
|
||||
) ENGINE = InnoDB CHARSET=utf8 COLLATE utf8_unicode_ci;`)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user