Skip to content

Commit

Permalink
Add Steam Group Announcements Bridge (#3527)
Browse files Browse the repository at this point in the history
* Create SteamGroupAnnouncementsBridge.php

* Shorten implementation

Maybe this fixes the tests

* test

---------

Co-authored-by: Dag <[email protected]>
  • Loading branch information
Jisagi and dvikan authored Jul 13, 2023
1 parent 0f2b55f commit b9102d7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions bridges/SteamGroupAnnouncementsBridge.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

class SteamGroupAnnouncementsBridge extends FeedExpander
{
const MAINTAINER = 'Jisagi';
const NAME = 'Steam Group Announcements';
const URI = 'https://steamcommunity.com/';
const DESCRIPTION = 'Returns latest announcements from a steam group.';

const PARAMETERS = [
[
'g' => [
'name' => 'Group name',
'exampleValue' => 'freegamesfinders',
'required' => true
]
]
];

public function collectData()
{
$uri = self::URI . 'groups/' . $this->getInput('g') . '/rss';
$this->collectExpandableDatas($uri, 10);
}
}

0 comments on commit b9102d7

Please sign in to comment.