diff --git a/config.json.example b/config.json.example index 1c2ed00d6297454644fcfab1bd5eec2a6091cbd5..bdefa0d682702bb9376f8f15fbdedd386d1e808a 100644 --- a/config.json.example +++ b/config.json.example @@ -1,4 +1,5 @@ { "access_token": "", - "api_url": "https://botsin.space/api/v1/" + "api_url": "https://botsin.space/api/v1/", + "admins": ["admin_username"] } \ No newline at end of file diff --git a/index.js b/index.js index a7af4c4f7704a743eb096df0abf5509388e881e8..9676fc1300dcff7aa732152f944a5e5c0f4d1ba7 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ const fs = require('fs'); const config = require('./config.json'); // Hardcode admins since Mastodon API doesn't provide such thing... -const admins = new Set(['tagadmin', 'Dhveszak', 'Incandescente']); +const admins = new Set(config.admins); const client = new Bot(config, [{api_point: "public", events: ["update"]}, {api_point: "user", events: ["notification"]}]);