You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
546 B
JavaScript
17 lines
546 B
JavaScript
import {MastodonTokenHandler} from "./mastodonTokenHandler.js";
|
|
import {mastodonMemeBot} from "./mastodonMemeBot.js";
|
|
|
|
const config = {
|
|
baseUrl: "https://social.cybre.town",
|
|
memeAPI: "http://redditapi.adb.sh/api/v1/",
|
|
subreddits: ["r/programmerhumor/random"],
|
|
allowedMedia: ["jpg", "jpeg", "gif", "png"]
|
|
};
|
|
|
|
let tokenHandler = new MastodonTokenHandler(config.baseUrl);
|
|
tokenHandler.getAccessToken((accessToken) => {
|
|
config.accessToken = accessToken;
|
|
let bot = new mastodonMemeBot(config);
|
|
bot.setFullInterval(60);
|
|
});
|