This repository includes the code for the brunei_news_bot
reddit account which monitors a list of subreddit for new post with links to news articles and automatically scrape the website for the content and post it as a reply.
Create appsettings.json
in project folder with the following structure.
{
"Reddit": {
"Secret": "",
"AppId": "",
"RefreshToken": ""
},
"Imgur": {
"ClientId": ""
},
"Proxy": {
"Host": "",
"Port": 80,
"Username": "",
"Password": ""
},
"Subreddits": "testingground4bots"
}
Run dotnet run
.
RedditBruneiNewsBot
directory in this repository.dotnet build -c Release -o app
.app
folder..exe
file that runs on Windows, etc.
Please refer to the Microsoft Docs for further information.app
folder from the previous section to somewhere safe on the server.app
folder.appsettings.json
or set it through environment variables. E.g.
Reddit__Secret=123
Reddit__AppId=123
Reddit__RefreshToken=123
Imgur__ClientId=123
Subreddits=123,456
dotnet RedditBruneiNewsBot.dll
.