Skip to content

Commit

Permalink
feat: add install URL
Browse files Browse the repository at this point in the history
fix: make debug configurable
  • Loading branch information
elliotwms committed Dec 18, 2021
1 parent 9c4b03f commit b95c6aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Pinbot

[Install 📌](https://discord.com/oauth2/authorize?client_id={bot_client_id}&permissions=3136&redirect_uri=http%3A%2F%2Flocalhost&scope=bot)

Whenever you react to a message with a pushpin 📌 emoji, Pinbot posts the message to a channel.

For a channel with name `#channel` it will look for the following channels:
Expand Down
5 changes: 4 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"os"
"os/signal"
"strings"
"syscall"

"github.com/bwmarrin/discordgo"
Expand All @@ -23,7 +24,9 @@ func main() {
panic(err)
}

s.LogLevel = discordgo.LogDebug
if strings.ToLower(os.Getenv("DEBUG")) == "true" {
s.LogLevel = discordgo.LogDebug
}

bot := pinbot.New(s, log)

Expand Down

0 comments on commit b95c6aa

Please sign in to comment.