Skip to content

Sadzeih/valcompbot

Repository files navigation

This bot manages the sidebar and widgets of /r/ValorantCompetitive.

Thanks to VLR for the access to their API, and facilitating by adding features to some endpoints.

Running the bot

You must provide these environment variables

REDDIT_SUBREDDIT="SUBREDDIT"
REDDIT_CLIENT_ID="CLIENT_ID"
REDDIT_CLIENT_SECRET="CLIENT_SECRET"
REDDIT_USERNAME="BOT_USERNAME"
REDDIT_PASSWORD="PASSWORD"
VLR_TOKEN="VLR_TOKEN"
POSTGRES_STRING="host=localhost port=5432 user=test dbname=valcompbot password=test sslmode=disable"
ALLOW_ORIGIN="*"

and start the bot by running:

$ go run .

Development

Development was made using go-reddit, which needed missing features, so a PR was opened.