mirror of
https://github.com/Xevion/r2park.git
synced 2025-12-08 04:08:08 -06:00
Rename Bot main function
This commit is contained in:
6
main.go
6
main.go
@@ -20,7 +20,7 @@ var (
|
||||
db *redis.Client
|
||||
)
|
||||
|
||||
func bot() {
|
||||
func Bot() {
|
||||
// Setup the session parameters
|
||||
session, err := discordgo.New("Bot " + os.Getenv("BOT_TOKEN"))
|
||||
if err != nil {
|
||||
@@ -114,9 +114,9 @@ func main() {
|
||||
Scan()
|
||||
case "bot":
|
||||
log.Printf("Running bot")
|
||||
bot()
|
||||
Bot()
|
||||
default:
|
||||
log.Printf("Running bot (default)")
|
||||
bot()
|
||||
Bot()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user