mirror of
https://github.com/idanoo/go-mastodon-stats
synced 2025-07-03 14:52:19 +00:00
Test?
This commit is contained in:
parent
97caf4bc37
commit
d927f1c5a1
5 changed files with 46 additions and 20 deletions
|
@ -51,12 +51,16 @@ func main() {
|
|||
|
||||
// Load mastodon data if exists
|
||||
gms.MASTODON_INSTANCE_URL = os.Getenv("MASTODON_INSTANCE_URL")
|
||||
gms.MASTODON_USERNAME = os.Getenv("MASTODON_USERNAME")
|
||||
gms.MASTODON_PASSWORD = os.Getenv("MASTODON_PASSWORD")
|
||||
gms.MASTODON_CLIENT_ID = os.Getenv("MASTODON_CLIENT_ID")
|
||||
gms.MASTODON_CLIENT_SECRET = os.Getenv("MASTODON_CLIENT_SECRET")
|
||||
gms.MASTODON_CLIENT_USERNAME = os.Getenv("MASTODON_CLIENT_USERNAME")
|
||||
gms.MASTODON_CLIENT_PASSWORD = os.Getenv("MASTODON_CLIENT_PASSWORD")
|
||||
if gms.MASTODON_INSTANCE_URL == "" ||
|
||||
gms.MASTODON_USERNAME == "" ||
|
||||
gms.MASTODON_PASSWORD == "" {
|
||||
log.Println("MASTODON_INSTANCE_URL info incompelete. Skipping")
|
||||
gms.MASTODON_CLIENT_ID == "" ||
|
||||
gms.MASTODON_CLIENT_SECRET == "" ||
|
||||
gms.MASTODON_CLIENT_USERNAME == "" ||
|
||||
gms.MASTODON_CLIENT_PASSWORD == "" {
|
||||
log.Println("MASTODON_INSTANCE info incompelete. Skipping")
|
||||
|
||||
// Set URL empty so we can check this later on
|
||||
gms.MASTODON_INSTANCE_URL = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue