feat(discord_test): check for DGU_TOKEN for compatibility
This commit is contained in:
parent
12b412a989
commit
d8f15b1bc6
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,10 @@ func TestMain(m *testing.M) {
|
|||
}
|
||||
}
|
||||
|
||||
if envOAuth2Token == "" {
|
||||
envOAuth2Token = os.Getenv("DGU_TOKEN")
|
||||
}
|
||||
|
||||
if envOAuth2Token != "" {
|
||||
if d, err := New(envOAuth2Token); err == nil {
|
||||
dg = d
|
||||
|
|
Loading…
Reference in a new issue