grim/wasdead

Fix the help message for the help command
draft
2019-04-08, Gary Kramlich
c06bc2e462ed
Fix the help message for the help command
package database
type Database interface {
SetChannel(guildid, channel string)
GetChannel(guildid string) string
Close()
}
var supported map[string]Database
func Register(name string, db Database) {
if len(supported) <= 0 {
supported = make(map[string]Database)
}
supported[name] = db
}
func Get(name string) Database {
return supported[name]
}
func Supported() []string {
ret := make([]string, len(supported))
i := 0
for n, _ := range supported {
ret[i] = n
i++
}
return ret
}