Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96e8388562 | ||
|
|
6369f37ce5 |
@@ -27,7 +27,8 @@ func ConnectDatabase(dbConnString string) {
|
||||
func(name string) ([]byte, error) {
|
||||
return migrations.Asset(name)
|
||||
})
|
||||
db, err := sql.Open("postgres", dbConnString)
|
||||
var err error
|
||||
db, err = sql.Open("postgres", dbConnString)
|
||||
if err != nil {
|
||||
log.Fatal(fmt.Errorf("Can't connect to the database: %w", err))
|
||||
}
|
||||
|
||||
@@ -263,6 +263,7 @@ func addUserCommandFunc(ctx disgoman.Context, args []string) {
|
||||
if ctx.Message.Author.ID == ctx.CommandManager.Owners[0] {
|
||||
user := geeksbot.User{
|
||||
ID: ctx.Message.Author.ID,
|
||||
SteamID: "",
|
||||
IsActive: true,
|
||||
IsStaff: true,
|
||||
IsAdmin: true,
|
||||
|
||||
Reference in New Issue
Block a user