1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-11 01:22:48 +00:00

use permissions from database - updated bot-scripts

This commit is contained in:
2018-10-20 13:42:37 -05:00
parent 3f650e7c65
commit b004d4f29a
15 changed files with 126 additions and 57 deletions

27
server/scripts/main.go Normal file
View File

@@ -0,0 +1,27 @@
package main
import (
"fmt"
"os"
)
func main() {
if len(os.Args) == 1 {
fmt.Print("Error - Invalid Args\n\nPossible Args:\nrestore-message\nupdate-db\n\n")
return
}
arg := os.Args[1]
switch arg {
case "update-db":
updateDB()
case "restore-messages":
if len(os.Args) < 3 {
fmt.Println("Please provide a channel id")
return
}
restoreMessages(os.Args[2])
}
}