mirror of https://github.com/velour/catbase.git
Adding the bot to its own list of users. (future usage)
This commit is contained in:
parent
03a20d0446
commit
076b985716
|
@ -117,11 +117,18 @@ func NewBot(config *config.Config, c *irc.Conn) *Bot {
|
||||||
|
|
||||||
config.Nick = c.Me.Nick
|
config.Nick = c.Me.Nick
|
||||||
|
|
||||||
|
users := []User{
|
||||||
|
User{
|
||||||
|
Name: config.Nick,
|
||||||
|
MessageLog: make([]string, 0),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
return &Bot{
|
return &Bot{
|
||||||
Config: config,
|
Config: config,
|
||||||
Plugins: make(map[string]Handler),
|
Plugins: make(map[string]Handler),
|
||||||
PluginOrdering: make([]string, 0),
|
PluginOrdering: make([]string, 0),
|
||||||
Users: make([]User, 0),
|
Users: users,
|
||||||
Conn: c,
|
Conn: c,
|
||||||
DbSession: session,
|
DbSession: session,
|
||||||
Db: db,
|
Db: db,
|
||||||
|
|
Loading…
Reference in New Issue